mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-18 03:15:07 +00:00
Fix redirection lenses having phantom lens functionality as well
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user