net/minecraft/util/datafix/**
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
--- 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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user