Update to 1.14.4 (#2333)
This commit is contained in:
@@ -5,7 +5,7 @@ Subject: [PATCH] Actually-Limit-Natural-Spawns-To-Limit
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/ChunkProviderServer.java b/src/main/java/net/minecraft/server/ChunkProviderServer.java
|
||||
index cafa244fd..9ea7fb91f 100644
|
||||
index 4e60de0b6e..21032fa943 100644
|
||||
--- a/src/main/java/net/minecraft/server/ChunkProviderServer.java
|
||||
+++ b/src/main/java/net/minecraft/server/ChunkProviderServer.java
|
||||
@@ -0,0 +0,0 @@ public class ChunkProviderServer extends IChunkProvider {
|
||||
@@ -24,7 +24,7 @@ index cafa244fd..9ea7fb91f 100644
|
||||
}
|
||||
}
|
||||
diff --git a/src/main/java/net/minecraft/server/SpawnerCreature.java b/src/main/java/net/minecraft/server/SpawnerCreature.java
|
||||
index 09f1b9d76..b442e09eb 100644
|
||||
index c6ea37ffbd..5e6559df0b 100644
|
||||
--- a/src/main/java/net/minecraft/server/SpawnerCreature.java
|
||||
+++ b/src/main/java/net/minecraft/server/SpawnerCreature.java
|
||||
@@ -0,0 +0,0 @@ public final class SpawnerCreature {
|
||||
@@ -58,33 +58,32 @@ index 09f1b9d76..b442e09eb 100644
|
||||
++i2;
|
||||
continue;
|
||||
@@ -0,0 +0,0 @@ public final class SpawnerCreature {
|
||||
} catch (Exception exception) {
|
||||
SpawnerCreature.LOGGER.warn("Failed to create mob", exception);
|
||||
ServerInternalException.reportInternalException(exception); // Paper
|
||||
- return;
|
||||
+ return amountSpawned; // Paper
|
||||
}
|
||||
|
||||
entityinsentient.setPositionRotation((double) f, (double) k, (double) f1, world.random.nextFloat() * 360.0F, 0.0F);
|
||||
@@ -0,0 +0,0 @@ public final class SpawnerCreature {
|
||||
if (world.addEntity(entityinsentient, SpawnReason.NATURAL)) {
|
||||
++i;
|
||||
++i2;
|
||||
+ // Paper start - stop when limit is reached
|
||||
+ amountSpawned++;
|
||||
+ }
|
||||
+
|
||||
+ if (amountSpawned >= maxSpawns){
|
||||
+ return amountSpawned; // Paper
|
||||
}
|
||||
+ // Paper end
|
||||
// CraftBukkit end
|
||||
if (i >= entityinsentient.dD()) {
|
||||
} catch (Exception exception) {
|
||||
SpawnerCreature.LOGGER.warn("Failed to create mob", exception);
|
||||
ServerInternalException.reportInternalException(exception); // Paper
|
||||
- return;
|
||||
+ return amountSpawned; // Paper
|
||||
}
|
||||
|
||||
if (entityinsentient.c(i2)) {
|
||||
entityinsentient.setPositionRotation((double) f, (double) k, (double) f1, world.random.nextFloat() * 360.0F, 0.0F);
|
||||
@@ -0,0 +0,0 @@ public final class SpawnerCreature {
|
||||
if (world.addEntity(entityinsentient, SpawnReason.NATURAL)) {
|
||||
++i;
|
||||
++i2;
|
||||
+ // Paper start - stop when limit is reached
|
||||
+ ++amountSpawned;
|
||||
+ }
|
||||
+ if (amountSpawned >= maxSpawns) {
|
||||
+ return amountSpawned;
|
||||
}
|
||||
+ // Paper end
|
||||
// CraftBukkit end
|
||||
if (i >= entityinsentient.dC()) {
|
||||
- return;
|
||||
+ return amountSpawned; // Paper
|
||||
}
|
||||
|
||||
if (entityinsentient.c(i2)) {
|
||||
@@ -0,0 +0,0 @@ public final class SpawnerCreature {
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user