Do alt lookup for teleport location from bedrock

This commit is contained in:
Maxopoly committed 2020-08-20 19:03:09 +02:00
1 parent 85182bd1e0
commit da4a208cd6
1 file changed
+1 -1
@@ -560,7 +560,7 @@ public class GameFeatures extends SimpleHack<GameFeaturesConfig> implements List
event.getPlayer().teleport(adjustedLocation);
return;
}
for(int y = block.getY(); y > 0; y--) {
for(int y = 0; y < block.getY(); y++) {
Block target = block.getWorld().getBlockAt(block.getX(), y, block.getZ());
if (target.getType() != Material.GOLD_BLOCK) {
continue;