mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-22 05:02:30 +00:00
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:
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)
|
||||
|
||||
Reference in new issue
Block a user