mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-23 13:39:51 +00:00
Fix travel anchor rendering while player is standing on it
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user