Fixed the Redirective lens redirecting if fired from a blaster

This commit is contained in:
Vasco Lavos committed 2015-11-16 15:26:21 +00:00
1 parent 9c25373dc8
commit 45c2724a6b
1 file changed
+1 -1
@@ -29,7 +29,7 @@ public class LensRedirect extends Lens {
@Override
public boolean collideBurst(IManaBurst burst, EntityThrowable entity, MovingObjectPosition pos, boolean isManaBlock, boolean dead, ItemStack stack) {
ChunkCoordinates coords = burst.getBurstSourceChunkCoordinates();
if(!entity.worldObj.isRemote && pos.entityHit == null && (pos.blockX != coords.posX || pos.blockY != coords.posY || pos.blockZ != coords.posZ)) {
if(!entity.worldObj.isRemote && pos.entityHit == null && coords.posY != -1 && (pos.blockX != coords.posX || pos.blockY != coords.posY || pos.blockZ != coords.posZ)) {
TileEntity tile = entity.worldObj.getTileEntity(pos.blockX, pos.blockY, pos.blockZ);
if(tile != null && tile instanceof IRedirectable) {
if(!burst.isFake()) {