diff --git a/nms-patches/LootTable.patch b/nms-patches/LootTable.patch new file mode 100644 index 0000000000..06298ad61b --- /dev/null +++ b/nms-patches/LootTable.patch @@ -0,0 +1,14 @@ +--- a/net/minecraft/server/LootTable.java ++++ b/net/minecraft/server/LootTable.java +@@ -40,6 +40,11 @@ + + public static Consumer a(Consumer consumer) { + return (itemstack) -> { ++ // CraftBukkit start - SPIGOT-4940: no empty loot ++ if (itemstack.isEmpty()) { ++ return; ++ } ++ // CraftBukkit end + if (itemstack.getCount() < itemstack.getMaxStackSize()) { + consumer.accept(itemstack); + } else {