World seed only works in overworld for now

This commit is contained in:
Vincent Lee committed 2020-07-14 10:16:46 -05:00
1 parent e71a62f0f8
commit 81e5615ab4
1 file changed
+1 -2
@@ -36,8 +36,7 @@ public class ItemWorldSeed extends Item {
}
BlockPos coords = ((ServerWorld) world).func_241135_u_();
// todo 1.16 only make it work in dimensions with a conceptual spawn point
if (MathHelper.pointDistanceSpace(coords.getX() + 0.5, coords.getY() + 0.5, coords.getZ() + 0.5, player.getPosX(), player.getPosY(), player.getPosZ()) > 24) {
if (world.func_234923_W_() == World.field_234918_g_ && MathHelper.pointDistanceSpace(coords.getX() + 0.5, coords.getY() + 0.5, coords.getZ() + 0.5, player.getPosX(), player.getPosY(), player.getPosZ()) > 24) {
player.rotationPitch = 0F;
player.rotationYaw = 0F;
player.setPositionAndUpdate(coords.getX() + 0.5, coords.getY() + 0.5, coords.getZ() + 0.5);