2020-02-11 04:35:46 +00:00
|
|
|
From 19d81003e11bd737430877d25d2582cb3c77f246 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
|
2020-01-30 09:36:03 +00:00
|
|
|
index 0b35a4b14..4ca28c8b6 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
|
2020-01-28 00:16:53 +00:00
|
|
|
@@ -127,7 +127,7 @@ public class EntityPlayer extends EntityHuman implements ICrafting {
|
2019-12-15 19:42:35 +00:00
|
|
|
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()));
|
|
|
|
|
|
|
|
--
|
2020-01-30 09:36:03 +00:00
|
|
|
2.25.0
|
2019-12-15 19:42:35 +00:00
|
|
|
|