Skip to content

Commit 2ab0258

Browse files
authored
Use mojang item ids for alternative item despawn rate (#6997)
1 parent e5da93a commit 2ab0258

File tree

216 files changed

+194
-173
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

216 files changed

+194
-173
lines changed

patches/server/0004-Paper-config-files.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ index 0000000000000000000000000000000000000000..a7182a4c64980aa19b8493ac9c2bb762
298298
+}
299299
diff --git a/src/main/java/com/destroystokyo/paper/PaperConfig.java b/src/main/java/com/destroystokyo/paper/PaperConfig.java
300300
new file mode 100644
301-
index 0000000000000000000000000000000000000000..23410c6ee34fcd9c50c2dbf35d8ff4d0c9ca408c
301+
index 0000000000000000000000000000000000000000..6f7681d8e03f15bee821b0c053ed64ad3afeb2a4
302302
--- /dev/null
303303
+++ b/src/main/java/com/destroystokyo/paper/PaperConfig.java
304304
@@ -0,0 +1,188 @@
@@ -364,8 +364,8 @@ index 0000000000000000000000000000000000000000..23410c6ee34fcd9c50c2dbf35d8ff4d0
364364
+ commands = new HashMap<String, Command>();
365365
+ commands.put("paper", new PaperCommand("paper"));
366366
+
367-
+ version = getInt("config-version", 25);
368-
+ set("config-version", 25);
367+
+ version = getInt("config-version", 26);
368+
+ set("config-version", 26);
369369
+ readConfig(PaperConfig.class, null);
370370
+ }
371371
+

patches/server/0356-Implement-alternative-item-despawn-rate.patch

Lines changed: 89 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -3,102 +3,142 @@ From: kickash32 <kickash32@gmail.com>
33
Date: Mon, 3 Jun 2019 02:02:39 -0400
44
Subject: [PATCH] Implement alternative item-despawn-rate
55

6+
Co-authored-by: Noah van der Aa <ndvdaa@gmail.com>
67

78
diff --git a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
8-
index ed976e0582dee32ccf3aad49efb0dd773f5f9d80..e129794e5cbf5155a232966ef4ff534c0007f1d9 100644
9+
index ed976e0582dee32ccf3aad49efb0dd773f5f9d80..f41e292e78b2c6874ee9f0cb4336263581339ca6 100644
910
--- a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
1011
+++ b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
11-
@@ -560,5 +560,52 @@ public class PaperWorldConfig {
12+
@@ -560,5 +560,74 @@ public class PaperWorldConfig {
1213
Bukkit.getLogger().warning("You have enabled permission-based Anti-Xray checking - depending on your permission plugin, this may cause performance issues");
1314
}
1415
}
1516
-}
1617

1718
+ public boolean altItemDespawnRateEnabled;
18-
+ public java.util.Map<org.bukkit.Material, Integer> altItemDespawnRateMap;
19+
+ public java.util.Map<net.minecraft.resources.ResourceLocation, Integer> altItemDespawnRateMap = new HashMap<>();
1920
+ private void altItemDespawnRate() {
2021
+ String path = "alt-item-despawn-rate";
22+
+ // Migrate from bukkit material to Mojang item ids
23+
+ if (PaperConfig.version < 26) {
24+
+ String world = worldName;
25+
+ try {
26+
+ org.bukkit.configuration.ConfigurationSection mapSection = config.getConfigurationSection("world-settings." + world + "." + path + ".items");
27+
+ if (mapSection == null) {
28+
+ world = "default";
29+
+ mapSection = config.getConfigurationSection("world-settings." + world + "." + path + ".items");
30+
+ }
31+
+ if (mapSection != null) {
32+
+ for (String key : mapSection.getKeys(false)) {
33+
+ int val = mapSection.getInt(key);
34+
+ try {
35+
+ // Ignore options that are already valid mojang wise, otherwise we might try to migrate the same config twice and fail.
36+
+ boolean isMojangMaterial = net.minecraft.core.Registry.ITEM.getOptional(new net.minecraft.resources.ResourceLocation(key.toLowerCase())).isPresent();
37+
+ mapSection.set(key, null);
38+
+ String newKey = isMojangMaterial ? key.toLowerCase() : org.bukkit.Material.valueOf(key).getKey().getKey().toLowerCase();
39+
+ mapSection.set(newKey, val);
40+
+ } catch (Exception e) {
41+
+ logError("Could not add item " + key + " to altItemDespawnRateMap: " + e.getMessage());
42+
+ }
43+
+ }
44+
+ config.set("world-settings." + world + "." + path + ".items", mapSection);
45+
+ }
46+
+ } catch (Exception e) {
47+
+ logError("alt-item-despawn-rate was malformatted");
48+
+ return;
49+
+ }
50+
+ }
2151
+
2252
+ altItemDespawnRateEnabled = getBoolean(path + ".enabled", false);
2353
+
24-
+ java.util.Map<org.bukkit.Material, Integer> altItemDespawnRateMapDefault = new java.util.EnumMap<>(org.bukkit.Material.class);
25-
+ altItemDespawnRateMapDefault.put(org.bukkit.Material.COBBLESTONE, 300);
26-
+ for (org.bukkit.Material key : altItemDespawnRateMapDefault.keySet()) {
27-
+ config.addDefault("world-settings.default." + path + ".items." + key, altItemDespawnRateMapDefault.get(key));
54+
+ if (config.getConfigurationSection("world-settings.default." + path + ".items") == null) {
55+
+ // Initialize default
56+
+ config.addDefault("world-settings.default." + path + ".items.cobblestone", 300);
2857
+ }
2958
+
30-
+ java.util.Map<String, Integer> rawMap = new java.util.HashMap<>();
31-
+ try {
32-
+ org.bukkit.configuration.ConfigurationSection mapSection = config.getConfigurationSection("world-settings." + worldName + "." + path + ".items");
33-
+ if (mapSection == null) {
34-
+ mapSection = config.getConfigurationSection("world-settings.default." + path + ".items");
35-
+ }
36-
+ for (String key : mapSection.getKeys(false)) {
37-
+ int val = mapSection.getInt(key);
38-
+ rawMap.put(key, val);
39-
+ }
40-
+ }
41-
+ catch (Exception e) {
42-
+ logError("alt-item-despawn-rate was malformatted");
43-
+ altItemDespawnRateEnabled = false;
44-
+ }
45-
+
46-
+ altItemDespawnRateMap = new java.util.EnumMap<>(org.bukkit.Material.class);
4759
+ if (!altItemDespawnRateEnabled) {
4860
+ return;
4961
+ }
5062
+
51-
+ for(String key : rawMap.keySet()) {
52-
+ try {
53-
+ altItemDespawnRateMap.put(org.bukkit.Material.valueOf(key), rawMap.get(key));
54-
+ } catch (Exception e) {
55-
+ logError("Could not add item " + key + " to altItemDespawnRateMap: " + e.getMessage());
56-
+ }
63+
+ org.bukkit.configuration.ConfigurationSection mapSection = config.getConfigurationSection("world-settings." + worldName + "." + path + ".items");
64+
+ if (mapSection == null) {
65+
+ mapSection = config.getConfigurationSection("world-settings.default." + path + ".items");
5766
+ }
58-
+ if(altItemDespawnRateEnabled) {
59-
+ for(org.bukkit.Material key : altItemDespawnRateMap.keySet()) {
60-
+ log("Alternative item despawn rate of " + key + ": " + altItemDespawnRateMap.get(key));
67+
+ if (mapSection != null) {
68+
+ for (String key : mapSection.getKeys(false)) {
69+
+ try {
70+
+ int val = mapSection.getInt(key);
71+
+ net.minecraft.resources.ResourceLocation keyLocation = new net.minecraft.resources.ResourceLocation(key);
72+
+ if (net.minecraft.core.Registry.ITEM.getOptional(keyLocation).isPresent()) {
73+
+ altItemDespawnRateMap.put(keyLocation, val);
74+
+ } else {
75+
+ logError("Could not add item " + key + " to altItemDespawnRateMap: not a valid item");
76+
+ }
77+
+ } catch (Exception e) {
78+
+ logError("Could not add item " + key + " to altItemDespawnRateMap: " + e.getMessage());
79+
+ }
6180
+ }
6281
+ }
82+
+
83+
+ for (net.minecraft.resources.ResourceLocation key : altItemDespawnRateMap.keySet()) {
84+
+ log("Alternative item despawn rate of " + key.getPath() + ": " + altItemDespawnRateMap.get(key));
85+
+ }
6386
+ }
6487
+}
6588
diff --git a/src/main/java/net/minecraft/world/entity/item/ItemEntity.java b/src/main/java/net/minecraft/world/entity/item/ItemEntity.java
66-
index 87c92e73d23a1ebb0646ba0293e1c0d51bb0e059..7b2ac6920d5f0a8dc7cbb552a0e45e2fe471190e 100644
89+
index 87c92e73d23a1ebb0646ba0293e1c0d51bb0e059..3938bb6aa82bd02359dede6f6b17b7ba6685579b 100644
6790
--- a/src/main/java/net/minecraft/world/entity/item/ItemEntity.java
6891
+++ b/src/main/java/net/minecraft/world/entity/item/ItemEntity.java
69-
@@ -174,7 +174,7 @@ public class ItemEntity extends Entity {
92+
@@ -54,6 +54,7 @@ public class ItemEntity extends Entity {
93+
public final float bobOffs;
94+
private int lastTick = MinecraftServer.currentTick - 1; // CraftBukkit
95+
public boolean canMobPickup = true; // Paper
96+
+ private int despawnRate = -1; // Paper
97+
98+
public ItemEntity(EntityType<? extends ItemEntity> type, Level world) {
99+
super(type, world);
100+
@@ -174,7 +175,7 @@ public class ItemEntity extends Entity {
70101
}
71102
}
72103

73104
- if (!this.level.isClientSide && this.age >= level.spigotConfig.itemDespawnRate) { // Spigot
74-
+ if (!this.level.isClientSide && this.age >= this.getDespawnRate()) { // Spigot // Paper
105+
+ if (!this.level.isClientSide && this.age >= this.despawnRate) { // Spigot // Paper
75106
// CraftBukkit start - fire ItemDespawnEvent
76107
if (org.bukkit.craftbukkit.event.CraftEventFactory.callItemDespawnEvent(this).isCancelled()) {
77108
this.age = 0;
78-
@@ -198,7 +198,7 @@ public class ItemEntity extends Entity {
109+
@@ -198,7 +199,7 @@ public class ItemEntity extends Entity {
79110
this.lastTick = MinecraftServer.currentTick;
80111
// CraftBukkit end
81112

82113
- if (!this.level.isClientSide && this.age >= level.spigotConfig.itemDespawnRate) { // Spigot
83-
+ if (!this.level.isClientSide && this.age >= this.getDespawnRate()) { // Spigot // Paper
114+
+ if (!this.level.isClientSide && this.age >= this.despawnRate) { // Spigot // Paper
84115
// CraftBukkit start - fire ItemDespawnEvent
85116
if (org.bukkit.craftbukkit.event.CraftEventFactory.callItemDespawnEvent(this).isCancelled()) {
86117
this.age = 0;
87-
@@ -560,9 +560,16 @@ public class ItemEntity extends Entity {
118+
@@ -253,7 +254,7 @@ public class ItemEntity extends Entity {
119+
private boolean isMergable() {
120+
ItemStack itemstack = this.getItem();
121+
122+
- return this.isAlive() && this.pickupDelay != 32767 && this.age != -32768 && this.age < 6000 && itemstack.getCount() < itemstack.getMaxStackSize();
123+
+ return this.isAlive() && this.pickupDelay != 32767 && this.age != -32768 && this.age < this.despawnRate && itemstack.getCount() < itemstack.getMaxStackSize(); // Paper - respect despawn rate in pickup check.
124+
}
125+
126+
private void tryToMerge(ItemEntity other) {
127+
@@ -497,6 +498,8 @@ public class ItemEntity extends Entity {
128+
com.google.common.base.Preconditions.checkArgument(!stack.isEmpty(), "Cannot drop air"); // CraftBukkit
129+
this.getEntityData().set(ItemEntity.DATA_ITEM, stack);
130+
this.getEntityData().markDirty(ItemEntity.DATA_ITEM); // CraftBukkit - SPIGOT-4591, must mark dirty
131+
+ net.minecraft.resources.ResourceLocation location = net.minecraft.core.Registry.ITEM.getKey(stack.getItem()); // Paper
132+
+ this.despawnRate = level.paperConfig.altItemDespawnRateMap.getOrDefault(location, level.spigotConfig.itemDespawnRate); // Paper
133+
}
134+
135+
@Override
136+
@@ -560,7 +563,7 @@ public class ItemEntity extends Entity {
88137

89138
public void makeFakeItem() {
90139
this.setNeverPickUp();
91140
- this.age = level.spigotConfig.itemDespawnRate - 1; // Spigot
92-
+ this.age = this.getDespawnRate() - 1; // Spigot
141+
+ this.age = this.despawnRate - 1; // Spigot
93142
}
94143

95-
+ // Paper start
96-
+ public int getDespawnRate(){
97-
+ org.bukkit.Material material = this.getItem().getBukkitStack().getType();
98-
+ return level.paperConfig.altItemDespawnRateMap.getOrDefault(material, level.spigotConfig.itemDespawnRate);
99-
+ }
100-
+ // Paper end
101-
+
102144
public float getSpin(float tickDelta) {
103-
return ((float) this.getAge() + tickDelta) / 20.0F + this.bobOffs;
104-
}

patches/server/0359-implement-optional-per-player-mob-spawns.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ Subject: [PATCH] implement optional per player mob spawns
55

66

77
diff --git a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
8-
index e129794e5cbf5155a232966ef4ff534c0007f1d9..575f277a5d38ade7d70c632712ea895cde3bfaae 100644
8+
index f41e292e78b2c6874ee9f0cb4336263581339ca6..75d3365fe37dc419138295d2d28f8dfe1153c6c4 100644
99
--- a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
1010
+++ b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
11-
@@ -608,4 +608,12 @@ public class PaperWorldConfig {
12-
}
11+
@@ -630,4 +630,12 @@ public class PaperWorldConfig {
12+
log("Alternative item despawn rate of " + key.getPath() + ": " + altItemDespawnRateMap.get(key));
1313
}
1414
}
1515
+

patches/server/0375-Add-tick-times-API-and-mspt-command.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ index 0000000000000000000000000000000000000000..d0211d4f39f9d6af1d751ac66342b42c
7575
+ }
7676
+}
7777
diff --git a/src/main/java/com/destroystokyo/paper/PaperConfig.java b/src/main/java/com/destroystokyo/paper/PaperConfig.java
78-
index 83bf428abd3be89e34cf42638bd1357a708ea0e3..fda5a623ec6bba0ed4d230415f7b9779ee2e8ccf 100644
78+
index 2e7c3fe697ac29807107152ecd916dfe21625f0a..3b0fa01342fba7e05f061d398f2f072f3bde9b31 100644
7979
--- a/src/main/java/com/destroystokyo/paper/PaperConfig.java
8080
+++ b/src/main/java/com/destroystokyo/paper/PaperConfig.java
8181
@@ -69,6 +69,7 @@ public class PaperConfig {
@@ -84,8 +84,8 @@ index 83bf428abd3be89e34cf42638bd1357a708ea0e3..fda5a623ec6bba0ed4d230415f7b9779
8484
commands.put("paper", new PaperCommand("paper"));
8585
+ commands.put("mspt", new MSPTCommand("mspt"));
8686

87-
version = getInt("config-version", 25);
88-
set("config-version", 25);
87+
version = getInt("config-version", 26);
88+
set("config-version", 26);
8989
diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java
9090
index 287014feb99c67083a959f2c09213d49ad5f743d..2e08855085a547151140bcb05dce9bc469d81ff6 100644
9191
--- a/src/main/java/net/minecraft/server/MinecraftServer.java
@@ -146,7 +146,7 @@ index 287014feb99c67083a959f2c09213d49ad5f743d..2e08855085a547151140bcb05dce9bc4
146146
+ // Paper end
147147
}
148148
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
149-
index 06bfac218c750e3eb8d8a0d52d36ab94ef35ccb1..2d136e8cb25598f610ba114a4e7e1a9f80c08b58 100644
149+
index a6e7a609344f693cd0f51cfc4b122f45e24d0050..8452e72f669b82acb46ef00a7cdbb4177926ebc9 100644
150150
--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java
151151
+++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
152152
@@ -2461,6 +2461,16 @@ public final class CraftServer implements Server {

patches/server/0403-Add-phantom-creative-and-insomniac-controls.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ Subject: [PATCH] Add phantom creative and insomniac controls
55

66

77
diff --git a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
8-
index feadef47940a1eab3ea79236a40ffd3deb2660b2..e5d0168faf4988b2c033d146a798e6ab90e3b358 100644
8+
index 844b71128d4a9a926a86797f42288c26deb013a5..a4e4fdb2085616dc1334cfa96aa751250ac35be7 100644
99
--- a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
1010
+++ b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
11-
@@ -641,4 +641,11 @@ public class PaperWorldConfig {
11+
@@ -663,4 +663,11 @@ public class PaperWorldConfig {
1212
}
1313
perPlayerMobSpawns = getBoolean("per-player-mob-spawns", true);
1414
}

patches/server/0415-Option-for-maximum-exp-value-when-merging-orbs.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ Subject: [PATCH] Option for maximum exp value when merging orbs
55

66

77
diff --git a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
8-
index e5d0168faf4988b2c033d146a798e6ab90e3b358..8a12ad8417458d1ad71664e394f78db6b3770c0b 100644
8+
index a4e4fdb2085616dc1334cfa96aa751250ac35be7..3a5b6bdd20645c2afc788893dfa33511145deb6d 100644
99
--- a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
1010
+++ b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
11-
@@ -648,4 +648,10 @@ public class PaperWorldConfig {
11+
@@ -670,4 +670,10 @@ public class PaperWorldConfig {
1212
phantomIgnoreCreative = getBoolean("phantoms-do-not-spawn-on-creative-players", phantomIgnoreCreative);
1313
phantomOnlyAttackInsomniacs = getBoolean("phantoms-only-attack-insomniacs", phantomOnlyAttackInsomniacs);
1414
}

patches/server/0430-Delay-Chunk-Unloads-based-on-Player-Movement.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ This allows servers with smaller worlds who do less long distance exploring to s
1717
wasting cpu cycles on saving/unloading/reloading chunks repeatedly.
1818

1919
diff --git a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
20-
index 8a12ad8417458d1ad71664e394f78db6b3770c0b..64ceb8609891f59f4cf3b54844a25402bab32c26 100644
20+
index 3a5b6bdd20645c2afc788893dfa33511145deb6d..fb3023ee557b9c851d613aae0da26a4277d0ecd4 100644
2121
--- a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
2222
+++ b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
23-
@@ -654,4 +654,13 @@ public class PaperWorldConfig {
23+
@@ -676,4 +676,13 @@ public class PaperWorldConfig {
2424
expMergeMaxValue = getInt("experience-merge-max-value", -1);
2525
log("Experience Merge Max Value: " + expMergeMaxValue);
2626
}

patches/server/0563-Added-world-settings-for-mobs-picking-up-loot.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ Subject: [PATCH] Added world settings for mobs picking up loot
55

66

77
diff --git a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
8-
index 9cbff12cdfe7882d90c481496a6e8d96b7f19315..c22b05f9385efb0cb1f6ae3ae6af6e70f42e7506 100644
8+
index 375c15f672cbc612e4ab967d3519697937e7860e..137e4a16c4013bbbd6fed4f09f076267b2f45707 100644
99
--- a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
1010
+++ b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
11-
@@ -715,6 +715,14 @@ public class PaperWorldConfig {
11+
@@ -737,6 +737,14 @@ public class PaperWorldConfig {
1212
phantomOnlyAttackInsomniacs = getBoolean("phantoms-only-attack-insomniacs", phantomOnlyAttackInsomniacs);
1313
}
1414

@@ -37,7 +37,7 @@ index 609380af4de4118a543b6ec94feb176e6f6870ed..ecf12ed5014202181e78af051e4a9ca8
3737
LocalDate localdate = LocalDate.now();
3838
int i = localdate.get(ChronoField.DAY_OF_MONTH);
3939
diff --git a/src/main/java/net/minecraft/world/entity/monster/Zombie.java b/src/main/java/net/minecraft/world/entity/monster/Zombie.java
40-
index 3221bac65860801cc3ff8cca73b38669d354ba54..752ef51c7581062879fcc6111cec90828eaea452 100644
40+
index 5341f65436bb147c8aed5206c5e4515c7517bc2e..92145b35cf9f04afd388dfea8215097a9da7c5a7 100644
4141
--- a/src/main/java/net/minecraft/world/entity/monster/Zombie.java
4242
+++ b/src/main/java/net/minecraft/world/entity/monster/Zombie.java
4343
@@ -503,7 +503,7 @@ public class Zombie extends Monster {

patches/server/0582-Add-toggle-for-always-placing-the-dragon-egg.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ Subject: [PATCH] Add toggle for always placing the dragon egg
55

66

77
diff --git a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
8-
index 8a97978f16f8a4c759cb2eba9f408159b3382db6..4ab8e20efc54e7094e3e0f98109c95252d5e7c01 100644
8+
index 9f30096851601b8b9cecf2de97b32371e39d2e9d..63c5e6547af91e8227124fcc214d4b01a94f3c74 100644
99
--- a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
1010
+++ b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
11-
@@ -745,6 +745,11 @@ public class PaperWorldConfig {
11+
@@ -767,6 +767,11 @@ public class PaperWorldConfig {
1212
perPlayerMobSpawns = getBoolean("per-player-mob-spawns", true);
1313
}
1414

0 commit comments

Comments
 (0)