Akarin ports

This commit is contained in:
AlphaKR93
2025-02-23 22:25:29 +09:00
parent fb72bc56c3
commit 14403ebab9
27 changed files with 575 additions and 304 deletions

View File

@@ -0,0 +1,11 @@
--- a/net/minecraft/world/RandomizableContainer.java
+++ b/net/minecraft/world/RandomizableContainer.java
@@ -88,6 +_,8 @@
default void unpackLootTable(@Nullable final Player player, final boolean forceClearLootTable) {
// Paper end - LootTable API
Level level = this.getLevel();
+ if (level.plazmaConfig().entity.populateLootTableOnlyForPlayerInteraction && player == null) return; // Plazma - Populate LootTable only for player interaction
+
BlockPos blockPos = this.getBlockPos();
ResourceKey<LootTable> lootTable = this.getLootTable();
// Paper start - LootTable API