Fix vision

This commit is contained in:
cyberpwn 2021-09-13 09:47:44 -04:00
parent f26b36f3e8
commit 42789fcc24

View File

@ -744,9 +744,9 @@ public class VisionGUI extends JPanel implements MouseWheelListener, KeyListener
if (player != null) {
int xx = (int) getWorldX(hx);
int zz = (int) getWorldZ(hz);
double h = engine.getComplex().getTrueHeightStream().get(xx, zz);
int h = engine.getComplex().getRoundedHeighteightStream().get(xx, zz);
player.teleport(new Location(player.getWorld(), xx, h, zz));
notify("Teleporting to " + xx + ", " + (int) h + ", " + zz);
notify("Teleporting to " + xx + ", " + h + ", " + zz);
} else {
notify("No player in world, can't teleport.");
}