mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-20 20:22:33 +00:00
World seed only works in overworld for now
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user