mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-03 23:07:40 +01:00
[00:50:57] <Clippy> wait, actually I need to do additional testing, just
remove it [00:51:09] <Clippy> ;( [00:51:17] * Clippy opens mcp [00:51:22] <Z750> ._.
This commit is contained in:
parent
383a3d442d
commit
1b72b3fc59
@ -1,37 +0,0 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: gsand <gsandowns@gmail.com>
|
||||
Date: Sat, 20 Dec 2014 22:30:59 -0800
|
||||
Subject: [PATCH] Configurable initial player spawn fuzziness
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/EntityPlayer.java b/src/main/java/net/minecraft/server/EntityPlayer.java
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/net/minecraft/server/EntityPlayer.java
|
||||
+++ b/src/main/java/net/minecraft/server/EntityPlayer.java
|
||||
@@ -0,0 +0,0 @@ public class EntityPlayer extends EntityHuman implements ICrafting {
|
||||
BlockPosition blockposition = worldserver.getSpawn();
|
||||
|
||||
if (!worldserver.worldProvider.o() && worldserver.getWorldData().getGameType() != EnumGamemode.ADVENTURE) {
|
||||
- int i = Math.max(5, minecraftserver.getSpawnProtection() - 6);
|
||||
+ int i = Math.max(org.github.paperspigot.PaperSpigotConfig.initialPlayerSpawnLocationRange, minecraftserver.getSpawnProtection() - 6);
|
||||
int j = MathHelper.floor(worldserver.af().b((double) blockposition.getX(), (double) blockposition.getZ()));
|
||||
|
||||
if (j < i) {
|
||||
diff --git a/src/main/java/org/github/paperspigot/PaperSpigotConfig.java b/src/main/java/org/github/paperspigot/PaperSpigotConfig.java
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/org/github/paperspigot/PaperSpigotConfig.java
|
||||
+++ b/src/main/java/org/github/paperspigot/PaperSpigotConfig.java
|
||||
@@ -0,0 +0,0 @@ public class PaperSpigotConfig
|
||||
dataValueAllowedItems = new HashSet<Integer>( getList( "data-value-allowed-items", Collections.emptyList() ) );
|
||||
Bukkit.getLogger().info( "Data value allowed items: " + StringUtils.join(dataValueAllowedItems, ", ") );
|
||||
}
|
||||
+
|
||||
+ public static int initialPlayerSpawnLocationRange;
|
||||
+ private static void initialPlayerSpawnLocationRange()
|
||||
+ {
|
||||
+ initialPlayerSpawnLocationRange = getInt( "player-spawning.initial-location-range", 5 );
|
||||
+ }
|
||||
}
|
||||
--
|
||||
1.9.5.msysgit.0
|
||||
|
Loading…
Reference in New Issue
Block a user