mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-08-21 05:44:33 +00:00
11 lines
458 B
Diff
11 lines
458 B
Diff
![]() |
--- a/net/minecraft/server/LootTable.java
|
||
|
+++ b/net/minecraft/server/LootTable.java
|
||
|
@@ -39,6 +39,7 @@
|
||
|
public static Consumer<ItemStack> a(Consumer<ItemStack> consumer) {
|
||
|
return (itemstack) -> {
|
||
|
if (itemstack.getCount() < itemstack.getMaxStackSize()) {
|
||
|
+ if (itemstack.isEmpty()) return; // CraftBukkit
|
||
|
consumer.accept(itemstack);
|
||
|
} else {
|
||
|
int i = itemstack.getCount();
|