mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-23 16:56:31 +01:00
11 lines
701 B
Diff
11 lines
701 B
Diff
--- a/net/minecraft/util/datafix/fixes/ItemStackTheFlatteningFix.java
|
|
+++ b/net/minecraft/util/datafix/fixes/ItemStackTheFlatteningFix.java
|
|
@@ -423,7 +_,7 @@
|
|
if (DAMAGE_IDS.contains(optional.get().getSecond())) {
|
|
Typed<?> typed2 = typed.getOrCreateTyped(opticFinder1);
|
|
Dynamic<?> dynamic1 = typed2.get(DSL.remainderFinder());
|
|
- dynamic1 = dynamic1.set("Damage", dynamic1.createInt(_int));
|
|
+ if (_int != 0) dynamic1 = dynamic1.set("Damage", dynamic1.createInt(_int)); // CraftBukkit
|
|
typed1 = typed1.set(opticFinder1, typed2.set(DSL.remainderFinder(), dynamic1));
|
|
}
|
|
|