Files
CatServer/patches/net/minecraft/tileentity/TileEntityLockableLoot.java.patch
2019-02-24 22:29:41 +08:00

12 lines
509 B
Diff

--- ../src-base/minecraft/net/minecraft/tileentity/TileEntityLockableLoot.java
+++ ../src-work/minecraft/net/minecraft/tileentity/TileEntityLockableLoot.java
@@ -73,7 +73,7 @@
if (player != null)
{
- lootcontext$builder.withLuck(player.getLuck());
+ lootcontext$builder.withLuck(player.getLuck()).withPlayer(player); // Forge: add player to LootContext
}
loottable.fillInventory(this, random, lootcontext$builder.build());