Add fireball to default max load config (#6252)
This commit is contained in:
parent
9b0a0d896c
commit
e905eb1986
9 changed files with 21 additions and 19 deletions
|
@ -9,7 +9,7 @@ defaults are only included for certain entites, this allows setting
|
|||
limits for any entity type.
|
||||
|
||||
diff --git a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
||||
index acd61a9033fdfb91e29a5fa6a10b8983ed94baa5..c94579d5db6802ef27c6c64cde1cdfdff5040ed2 100644
|
||||
index acd61a9033fdfb91e29a5fa6a10b8983ed94baa5..3e9f288ee310c7c79664e69b99698fdd179ae77f 100644
|
||||
--- a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
||||
+++ b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
||||
@@ -1,9 +1,12 @@
|
||||
|
@ -25,7 +25,7 @@ index acd61a9033fdfb91e29a5fa6a10b8983ed94baa5..c94579d5db6802ef27c6c64cde1cdfdf
|
|||
import net.minecraft.world.entity.monster.Vindicator;
|
||||
import net.minecraft.world.entity.monster.Zombie;
|
||||
import com.destroystokyo.paper.antixray.ChunkPacketBlockControllerAntiXray.EngineMode;
|
||||
@@ -123,6 +126,20 @@ public class PaperWorldConfig {
|
||||
@@ -123,6 +126,22 @@ public class PaperWorldConfig {
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -35,6 +35,8 @@ index acd61a9033fdfb91e29a5fa6a10b8983ed94baa5..c94579d5db6802ef27c6c64cde1cdfdf
|
|||
+ getInt("entity-per-chunk-save-limit.snowball", -1);
|
||||
+ getInt("entity-per-chunk-save-limit.ender_pearl", -1);
|
||||
+ getInt("entity-per-chunk-save-limit.arrow", -1);
|
||||
+ getInt("entity-per-chunk-save-limit.fireball", -1);
|
||||
+ getInt("entity-per-chunk-save-limit.small_fireball", -1);
|
||||
+ EntityType.getEntityNameList().forEach(name -> {
|
||||
+ final EntityType<?> type = EntityType.byString(name.getPath()).orElseThrow(() -> new IllegalStateException("Unknown Entity Type: " + name.toString()));
|
||||
+ final String path = ".entity-per-chunk-save-limit." + name.getPath();
|
||||
|
@ -72,7 +74,7 @@ index b50bf044a3cb05b811fd06796a351e6b15b352ad..ac99265aacd4a28490705e3079ed0402
|
|||
return entity;
|
||||
});
|
||||
diff --git a/src/main/java/net/minecraft/world/level/chunk/storage/EntityStorage.java b/src/main/java/net/minecraft/world/level/chunk/storage/EntityStorage.java
|
||||
index b35c1c2cb2bbe489ccd3fe64049c3af11bfd26f4..69ac9ed94b1890f9bd5ba21cdfe31e42529274e1 100644
|
||||
index 9b0b3affdbdf831f0d3d61c59bdb99555bc0bed7..396c34c0866bf395b4d86361d96fe103c5d9ae7e 100644
|
||||
--- a/src/main/java/net/minecraft/world/level/chunk/storage/EntityStorage.java
|
||||
+++ b/src/main/java/net/minecraft/world/level/chunk/storage/EntityStorage.java
|
||||
@@ -90,7 +90,18 @@ public class EntityStorage implements EntityPersistentStorage<Entity> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue