Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-20 21:40:06 +01:00
SPIGOT-5425: Prevent empty/air loot (again?)
Dieser Commit ist enthalten in:
Ursprung
db0dafb17c
Commit
f777640e48
10
nms-patches/LootTable.patch
Normale Datei
10
nms-patches/LootTable.patch
Normale Datei
@ -0,0 +1,10 @@
|
|||||||
|
--- 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