geforkt von Mirrors/Paper
SPIGOT-5448: Shulker Boxes collapse empty slots when picked up
By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
Ursprung
aaeee556da
Commit
b456056bb7
@ -143,3 +143,11 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -255,6 +326,7 @@
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void a(ObjectArrayList<Pair<ItemStack, BlockPosition>> objectarraylist, ItemStack itemstack, BlockPosition blockposition) {
|
||||||
|
+ if (itemstack.isEmpty()) return; // CraftBukkit - SPIGOT-5425
|
||||||
|
int i = objectarraylist.size();
|
||||||
|
|
||||||
|
for (int j = 0; j < i; ++j) {
|
||||||
|
@ -1,10 +0,0 @@
|
|||||||
--- 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();
|
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren