2019-12-23 03:59:27 +00:00
|
|
|
From 12a0c60fd1aa113b525117c6d92c8ab12f5fb58c Mon Sep 17 00:00:00 2001
|
2019-12-15 19:42:35 +00:00
|
|
|
From: Shane Freeder <theboyetronic@gmail.com>
|
|
|
|
Date: Sun, 15 Dec 2019 19:41:28 +0000
|
|
|
|
Subject: [PATCH] Fix spawn radius being treated as 0
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/EntityPlayer.java b/src/main/java/net/minecraft/server/EntityPlayer.java
|
2019-12-23 03:59:27 +00:00
|
|
|
index f130c5ddc..ed6f1b1a3 100644
|
2019-12-15 19:42:35 +00:00
|
|
|
--- a/src/main/java/net/minecraft/server/EntityPlayer.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/EntityPlayer.java
|
|
|
|
@@ -123,7 +123,7 @@ public class EntityPlayer extends EntityHuman implements ICrafting {
|
|
|
|
public final BlockPosition getSpawnPoint(WorldServer worldserver) {
|
|
|
|
BlockPosition blockposition = worldserver.getSpawn();
|
|
|
|
|
|
|
|
- if (worldserver.worldProvider.g() && worldserver.getWorldData().getGameType() != EnumGamemode.ADVENTURE) {
|
|
|
|
+ if (worldserver.worldProvider.f() && worldserver.getWorldData().getGameType() != EnumGamemode.ADVENTURE) { // Paper
|
|
|
|
int i = Math.max(0, this.server.a(worldserver));
|
|
|
|
int j = MathHelper.floor(worldserver.getWorldBorder().b((double) blockposition.getX(), (double) blockposition.getZ()));
|
|
|
|
|
|
|
|
--
|
|
|
|
2.24.1
|
|
|
|
|