Fix shulkerbox loot table replenish (#11366)

* Fix shulkerbox loot table replenish

* re-add loot table if cleared

* add config
This commit is contained in:
Jake Potrebic 2024-09-07 12:49:28 -07:00 committed by GitHub
parent 0e825274e5
commit 5d91bef46f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
29 changed files with 93 additions and 37 deletions

View file

@ -1416,7 +1416,7 @@ index 0000000000000000000000000000000000000000..990d1bb46e0f9719f4e9af928d80ac6f
+}
diff --git a/src/main/java/io/papermc/paper/configuration/WorldConfiguration.java b/src/main/java/io/papermc/paper/configuration/WorldConfiguration.java
new file mode 100644
index 0000000000000000000000000000000000000000..f1b74f7b12fc7b35815886501937725b65f8a8e3
index 0000000000000000000000000000000000000000..790e3167cfa2511ef2fc707d9b9aa681a78d8ba0
--- /dev/null
+++ b/src/main/java/io/papermc/paper/configuration/WorldConfiguration.java
@@ -0,0 +1,578 @@
@ -1460,7 +1460,6 @@ index 0000000000000000000000000000000000000000..f1b74f7b12fc7b35815886501937725b
+import net.minecraft.world.entity.Entity;
+import net.minecraft.world.entity.EntityType;
+import net.minecraft.world.entity.ExperienceOrb;
+import net.minecraft.world.entity.Leashable;
+import net.minecraft.world.entity.MobCategory;
+import net.minecraft.world.entity.boss.enderdragon.EnderDragon;
+import net.minecraft.world.entity.decoration.HangingEntity;
@ -1800,6 +1799,7 @@ index 0000000000000000000000000000000000000000..f1b74f7b12fc7b35815886501937725b
+ public int maxRefills = -1;
+ public Duration refreshMin = Duration.of("12h");
+ public Duration refreshMax = Duration.of("2d");
+ public boolean retainUnlootedShulkerBoxLootTableOnNonPlayerBreak = true;
+ }
+
+ public MaxGrowthHeight maxGrowthHeight;