mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-24 22:14:45 +00:00
Added a config option for the position shift of the spreaders.
This commit is contained in:
1 parent
f61d11f9bd
commit
d17e5b5d92
2 files changed
+6
-2
No files matched your search
@@ -28,6 +28,7 @@ public final class ConfigHandler {
|
||||
public static boolean lexicon3dModel = true;
|
||||
public static boolean oldPylonModel = false;
|
||||
public static double flowerParticleFrequency = 0.75F;
|
||||
public static int spreaderPositionShift = 1;
|
||||
|
||||
public static int flowerQuantity = 3;
|
||||
public static int flowerDensity = 32;
|
||||
@@ -61,6 +62,9 @@ public final class ConfigHandler {
|
||||
|
||||
desc = "The frequency in which particles spawn from normal (worldgen) mystical flowers";
|
||||
flowerParticleFrequency = loadPropDouble("flowerParticles.frequency", desc, flowerParticleFrequency);
|
||||
|
||||
desc = "If Mana Spreaders do not work, try setting this to 0. It's a current workaround of a weird issue in this version.";
|
||||
spreaderPositionShift = loadPropInt("spreader.posShift", desc, spreaderPositionShift);
|
||||
|
||||
flowerQuantity = loadPropInt("worldgen.flower.quantity", null, 3);
|
||||
flowerDensity = loadPropInt("worldgen.flower.density", null, 32);
|
||||
|
||||
@@ -736,8 +736,8 @@ public class EntityManaBurst extends EntityThrowable implements IManaBurst {
|
||||
}
|
||||
|
||||
public boolean contentsEqual(World world) {
|
||||
Block block = world.getBlock(coords.posX - 1, coords.posY, coords.posZ);
|
||||
int meta = world.getBlockMetadata(coords.posX - 1, coords.posY, coords.posZ);
|
||||
Block block = world.getBlock(coords.posX - ConfigHandler.spreaderPositionShift, coords.posY, coords.posZ);
|
||||
int meta = world.getBlockMetadata(coords.posX - ConfigHandler.spreaderPositionShift, coords.posY, coords.posZ);
|
||||
return block == this.block && meta == this.meta;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user