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.

This commit is contained in:
Vasco Lavos committed 2014-07-02 19:18:50 +01:00
1 parent 9c4b1058bf
commit a8a4a3b1f0
1 file changed
+7
@@ -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)