From d17e5b5d928713c39b910c963e08a699ce51d8b2 Mon Sep 17 00:00:00 2001 From: Vasco Lavos Date: Thu, 1 May 2014 17:53:04 +0100 Subject: [PATCH] Added a config option for the position shift of the spreaders. --- MODSRC/vazkii/botania/common/core/handler/ConfigHandler.java | 4 ++++ MODSRC/vazkii/botania/common/entity/EntityManaBurst.java | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/MODSRC/vazkii/botania/common/core/handler/ConfigHandler.java b/MODSRC/vazkii/botania/common/core/handler/ConfigHandler.java index 280777e26..a2a4a3ced 100644 --- a/MODSRC/vazkii/botania/common/core/handler/ConfigHandler.java +++ b/MODSRC/vazkii/botania/common/core/handler/ConfigHandler.java @@ -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); diff --git a/MODSRC/vazkii/botania/common/entity/EntityManaBurst.java b/MODSRC/vazkii/botania/common/entity/EntityManaBurst.java index 8a58a9178..93e9dd213 100644 --- a/MODSRC/vazkii/botania/common/entity/EntityManaBurst.java +++ b/MODSRC/vazkii/botania/common/entity/EntityManaBurst.java @@ -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; } }