geforkt von Mirrors/Paper
SPIGOT-5448: Shulker Boxes collapse empty slots when picked up
Dieser Commit ist enthalten in:
Ursprung
b97d581af2
Commit
fd25653f17
@ -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