mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-23 16:56:31 +01:00
11 lines
775 B
Diff
11 lines
775 B
Diff
--- a/net/minecraft/util/datafix/fixes/ItemStackMapIdFix.java
|
|
+++ b/net/minecraft/util/datafix/fixes/ItemStackMapIdFix.java
|
|
@@ -29,7 +_,7 @@
|
|
Dynamic<?> dynamic = typed.get(DSL.remainderFinder());
|
|
Typed<?> typed1 = typed.getOrCreateTyped(opticFinder1);
|
|
Dynamic<?> dynamic1 = typed1.get(DSL.remainderFinder());
|
|
- dynamic1 = dynamic1.set("map", dynamic1.createInt(dynamic.get("Damage").asInt(0)));
|
|
+ if (dynamic1.getElement("map").result().isEmpty()) dynamic1 = dynamic1.set("map", dynamic1.createInt(dynamic.get("Damage").asInt(0))); // CraftBukkit
|
|
return typed.set(opticFinder1, typed1.set(DSL.remainderFinder(), dynamic1));
|
|
} else {
|
|
return typed;
|