Mappings Update
By: md_5 <git@md-5.net>
This commit is contained in:
parent
239b2828db
commit
d7e312278d
120 changed files with 878 additions and 1619 deletions
|
@ -1,17 +1,8 @@
|
|||
--- a/net/minecraft/server/DataConverterMap.java
|
||||
+++ b/net/minecraft/server/DataConverterMap.java
|
||||
@@ -22,7 +22,7 @@
|
||||
public TypeRewriteRule makeRule() {
|
||||
Type type = this.getInputSchema().getType(DataConverterTypes.ITEM_STACK);
|
||||
OpticFinder opticfinder = DSL.fieldFinder("id", DSL.named(DataConverterTypes.q.typeName(), DSL.namespacedString()));
|
||||
- OpticFinder opticfinder1 = type.findField("tag");
|
||||
+ OpticFinder<?> opticfinder1 = type.findField("tag"); // CraftBukkit - decompile error
|
||||
|
||||
return this.fixTypeEverywhereTyped("ItemInstanceMapIdFix", type, (typed) -> {
|
||||
Optional optional = typed.getOptional(opticfinder);
|
||||
@@ -32,7 +32,7 @@
|
||||
Typed typed1 = typed.getOrCreateTyped(opticfinder1);
|
||||
Dynamic dynamic1 = (Dynamic) typed1.get(DSL.remainderFinder());
|
||||
@@ -31,7 +31,7 @@
|
||||
Typed<?> typed1 = typed.getOrCreateTyped(opticfinder1);
|
||||
Dynamic<?> dynamic1 = (Dynamic) typed1.get(DSL.remainderFinder());
|
||||
|
||||
- dynamic1 = dynamic1.set("map", dynamic1.createInt(dynamic.getInt("Damage")));
|
||||
+ if (!dynamic1.get("map").isPresent()) dynamic1 = dynamic1.set("map", dynamic1.createInt(dynamic.getInt("Damage"))); // CraftBukkit
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue