aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0309-Mob-Spawner-API-Enhancements.patch
diff options
context:
space:
mode:
authorJake Potrebic <[email protected]>2023-08-13 17:41:18 -0700
committerJake Potrebic <[email protected]>2023-08-15 10:04:27 -0700
commit496156e2eff4ec5a47aaf174cb1a04fd90612fde (patch)
tree87ddd26d4ed12c8bd8ad3723a70062b69c47110c /patches/server/0309-Mob-Spawner-API-Enhancements.patch
parent6dc8e30c9275f7a172025b053d4970d1795c6104 (diff)
downloadPaper-experimental.tar.gz
Paper-experimental.zip
Update with latest upstream changesexperimental
Diffstat (limited to 'patches/server/0309-Mob-Spawner-API-Enhancements.patch')
-rw-r--r--patches/server/0309-Mob-Spawner-API-Enhancements.patch8
1 files changed, 4 insertions, 4 deletions
diff --git a/patches/server/0309-Mob-Spawner-API-Enhancements.patch b/patches/server/0309-Mob-Spawner-API-Enhancements.patch
index c4a49e0b4d..03c674a622 100644
--- a/patches/server/0309-Mob-Spawner-API-Enhancements.patch
+++ b/patches/server/0309-Mob-Spawner-API-Enhancements.patch
@@ -9,10 +9,10 @@ public net.minecraft.world.level.BaseSpawner delay(Lnet/minecraft/world/level/Le
public net.minecraft.world.level.BaseSpawner setNextSpawnData(Lnet/minecraft/world/level/Level;Lnet/minecraft/core/BlockPos;Lnet/minecraft/world/level/SpawnData;)V
diff --git a/src/main/java/net/minecraft/world/level/BaseSpawner.java b/src/main/java/net/minecraft/world/level/BaseSpawner.java
-index a08c2dee792da1a54005f0a65a9eefabc7bc7c60..369298dfd437c1c83801f3d4ba63484ee1b969fe 100644
+index b0ae290342b4f540b77a928b19a86dd61166b210..3f70734857e0fe15e0c3f26253fcff61bad8db7f 100644
--- a/src/main/java/net/minecraft/world/level/BaseSpawner.java
+++ b/src/main/java/net/minecraft/world/level/BaseSpawner.java
-@@ -233,7 +233,13 @@ public abstract class BaseSpawner {
+@@ -230,7 +230,13 @@ public abstract class BaseSpawner {
}
public void load(@Nullable Level world, BlockPos pos, CompoundTag nbt) {
@@ -26,7 +26,7 @@ index a08c2dee792da1a54005f0a65a9eefabc7bc7c60..369298dfd437c1c83801f3d4ba63484e
boolean flag = nbt.contains("SpawnData", 10);
if (flag) {
-@@ -256,9 +262,15 @@ public abstract class BaseSpawner {
+@@ -253,9 +259,15 @@ public abstract class BaseSpawner {
this.spawnPotentials = SimpleWeightedRandomList.single(this.nextSpawnData != null ? this.nextSpawnData : new SpawnData());
}
@@ -44,7 +44,7 @@ index a08c2dee792da1a54005f0a65a9eefabc7bc7c60..369298dfd437c1c83801f3d4ba63484e
this.spawnCount = nbt.getShort("SpawnCount");
}
-@@ -275,9 +287,20 @@ public abstract class BaseSpawner {
+@@ -272,9 +284,20 @@ public abstract class BaseSpawner {
}
public CompoundTag save(CompoundTag nbt) {