0
0
mirror of https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git synced 2024-11-24 20:26:15 +00:00
craftbukkit/nms-patches/net/minecraft/util/datafix/fixes/DataConverterFlatten.patch
2021-03-16 09:00:00 +11:00

12 lines
624 B
Diff

--- a/net/minecraft/util/datafix/fixes/DataConverterFlatten.java
+++ b/net/minecraft/util/datafix/fixes/DataConverterFlatten.java
@@ -376,7 +376,7 @@
Typed<?> typed2 = typed.getOrCreateTyped(opticfinder1);
Dynamic<?> dynamic1 = (Dynamic) typed2.get(DSL.remainderFinder());
- dynamic1 = dynamic1.set("Damage", dynamic1.createInt(i));
+ if (i != 0) dynamic1 = dynamic1.set("Damage", dynamic1.createInt(i)); // CraftBukkit
typed1 = typed1.set(opticfinder1, typed2.set(DSL.remainderFinder(), dynamic1));
}