Fix travel anchor rendering while player is standing on it

This commit is contained in:
tterrag1098 committed 2015-04-11 22:26:14 -04:00
1 parent 1642280d44
commit 2d33e7ad55
2 files changed
+7 -2

No files matched your search

@@ -59,9 +59,9 @@ public class TravelController {
private boolean showTargets = false;
BlockCoord onBlockCoord;
public BlockCoord onBlockCoord;
BlockCoord selectedCoord;
public BlockCoord selectedCoord;
Camera currentView = new Camera();
@@ -54,6 +54,11 @@ public class TravelEntitySpecialRenderer extends TileEntitySpecialRenderer {
}
ITravelAccessable ta = (ITravelAccessable) tileentity;
BlockCoord onBlock = TravelController.instance.onBlockCoord;
if(onBlock != null && onBlock.equals(ta.getLocation())) {
return;
}
if(!ta.canSeeBlock(Minecraft.getMinecraft().thePlayer)) {
return;
}