From a8a4a3b1f0d3a04291160da14b62a541e6bbba8e Mon Sep 17 00:00:00 2001 From: Vasco Lavos Date: Wed, 2 Jul 2014 19:18:50 +0100 Subject: [PATCH] Fixed an exploit with Mana Spreaders that allowed them to function at twice the speed if one was to log out while a burst was still in the world. --- MODSRC/vazkii/botania/common/entity/EntityManaBurst.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/MODSRC/vazkii/botania/common/entity/EntityManaBurst.java b/MODSRC/vazkii/botania/common/entity/EntityManaBurst.java index 6f2e7bed2..84c694a4d 100644 --- a/MODSRC/vazkii/botania/common/entity/EntityManaBurst.java +++ b/MODSRC/vazkii/botania/common/entity/EntityManaBurst.java @@ -340,6 +340,13 @@ public class EntityManaBurst extends EntityThrowable implements IManaBurst { @Override public void onUpdate() { superUpdate(); + + if(!fake && !isDead) { + ChunkCoordinates coords = getBurstSourceChunkCoordinates(); + TileEntity tile = worldObj.getTileEntity(coords.posX, coords.posY, coords.posZ); + if(tile != null && tile instanceof TileSpreader) + ((TileSpreader) tile).canShootBurst = false; + } ILensEffect lens = getLensInstance(); if(lens != null)