Fix redirection lenses having phantom lens functionality as well

This commit is contained in:
Hubry committed 2018-12-02 21:21:08 +01:00
1 parent 4e4d6dffb9
commit 2226055872
1 file changed
+1 -6
@@ -28,7 +28,7 @@ public class LensRedirect extends Lens {
BlockPos coords = burst.getBurstSourceBlockPos();
if(!entity.world.isRemote && pos.entityHit == null && coords.getY() != -1 && (pos.getBlockPos() == null || !pos.getBlockPos().equals(coords))) {
TileEntity tile = entity.world.getTileEntity(pos.getBlockPos());
if(tile != null && tile instanceof IDirectioned) {
if(tile instanceof IDirectioned) {
if(!burst.isFake()) {
IDirectioned redir = (IDirectioned) tile;
Vector3 tileVec = Vector3.fromTileEntityCenter(tile);
@@ -64,11 +64,6 @@ public class LensRedirect extends Lens {
}
}
if(!isManaBlock) {
dead = false;
burst.setMinManaLoss(Math.max(0, burst.getMinManaLoss() - 4));
}
return dead;
}