Fix crash and possible desync in flash lens. Closes #47

This commit is contained in:
Vincent Lee committed 2016-01-17 16:41:37 -06:00
1 parent fef0857603
commit 4e5cb59ebe
1 file changed
+1 -1
@@ -26,7 +26,7 @@ public class LensLight extends Lens {
@Override
public boolean collideBurst(IManaBurst burst, EntityThrowable entity, MovingObjectPosition pos, boolean isManaBlock, boolean dead, ItemStack stack) {
BlockPos coords = burst.getBurstSourceBlockPos();
if((pos.getBlockPos() == null || !coords.equals(pos.getBlockPos())) && !burst.isFake() && !isManaBlock) {
if(!entity.worldObj.isRemote && pos.getBlockPos() != null && !coords.equals(pos.getBlockPos()) && !burst.isFake() && !isManaBlock) {
BlockPos pos_ = pos.getBlockPos().offset(pos.sideHit);
Block blockAt = entity.worldObj.getBlockState(pos.getBlockPos()).getBlock();