mirror of
https://github.com/CivMC/Civ.git
synced 2026-07-15 23:20:44 +00:00
fix config option
This commit is contained in:
@@ -131,7 +131,8 @@ public class HeliodorPlugin extends ACivMod {
|
||||
configPosList,
|
||||
meteoricIronConfigSection.getInt("min_position_radius"),
|
||||
meteoricIronConfigSection.getInt("max_position_radius"),
|
||||
meteoricIronConfigSection.getInt("max_bury")
|
||||
meteoricIronConfigSection.getInt("max_bury"),
|
||||
meteoricIronConfigSection.getBoolean("override-ender-eyes")
|
||||
);
|
||||
|
||||
SqlVeinDao veinDao = new SqlVeinDao(database);
|
||||
@@ -144,7 +145,9 @@ public class HeliodorPlugin extends ACivMod {
|
||||
veinSpawner = new VeinSpawner(this, veinDao, veinCache, meteoricIronConfig);
|
||||
veinSpawner.start();
|
||||
|
||||
getServer().getPluginManager().registerEvents(new EnderEyeListener(meteoricIronConfig.config().world(), meteoricIronConfig.positions()), this);
|
||||
if (meteoricIronConfig.overrideEnderEyes()) {
|
||||
getServer().getPluginManager().registerEvents(new EnderEyeListener(meteoricIronConfig.config().world(), meteoricIronConfig.positions()), this);
|
||||
}
|
||||
|
||||
getServer().getPluginManager().registerEvents(new PickaxeBreakListener(veinCache,
|
||||
meteoricIronConfig.config().lowDistance(),
|
||||
|
||||
@@ -2,6 +2,6 @@ package net.civmc.heliodor.vein.data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public record MeteoricIronVeinConfig(VeinConfig config, List<VerticalBlockPos> positions, int minPositionRadius, int maxPositionRadius, int maxBury) {
|
||||
public record MeteoricIronVeinConfig(VeinConfig config, List<VerticalBlockPos> positions, int minPositionRadius, int maxPositionRadius, int maxBury, boolean overrideEnderEyes) {
|
||||
public static final String TYPE_NAME = "meteorite";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user