Merge pull request #2798 from Hubry/redirect-phantom

Fix redirection lenses having phantom lens functionality as well
This commit is contained in:
Vincent Lee authored and GitHub committed 2018-12-03 01:44:52 -06:00
commit c80a3400e6
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;
}