summaryrefslogtreecommitdiffstats
path: root/nms-patches/DataConverterFlatten.patch
blob: 4c4a198f84afd9d6ae760daa30cac683a5aa2180 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/net/minecraft/server/DataConverterFlatten.java
+++ b/net/minecraft/server/DataConverterFlatten.java
@@ -378,7 +378,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));
                 }