summaryrefslogtreecommitdiffhomepage
path: root/build-data/reobf-mappings-patch.tiny
diff options
context:
space:
mode:
authorJake <[email protected]>2021-11-23 21:44:21 -0800
committerMiniDigger | Martin <[email protected]>2021-11-30 19:26:33 +0100
commit0f23d73d1ab26803875980b2e3fbcb11e3c30992 (patch)
treec67bfd17967dbd358f98b3321269f1cca8bd4e2e /build-data/reobf-mappings-patch.tiny
parent2b29fe37a23339de60cb3e91d549f2adc5c5de19 (diff)
downloadPaper-0f23d73d1ab26803875980b2e3fbcb11e3c30992.tar.gz
Paper-0f23d73d1ab26803875980b2e3fbcb11e3c30992.zip
a bunch more patches
Diffstat (limited to 'build-data/reobf-mappings-patch.tiny')
-rw-r--r--build-data/reobf-mappings-patch.tiny6
1 files changed, 6 insertions, 0 deletions
diff --git a/build-data/reobf-mappings-patch.tiny b/build-data/reobf-mappings-patch.tiny
index 050623a519..9064425df0 100644
--- a/build-data/reobf-mappings-patch.tiny
+++ b/build-data/reobf-mappings-patch.tiny
@@ -24,3 +24,9 @@ tiny 2 0 mojang+yarn spigot
# Paper changes type
#c net/minecraft/core/MappedRegistry net/minecraft/core/RegistryMaterials
# f Lit/unimi/dsi/fastutil/objects/Reference2IntOpenHashMap; toId bw
+
+# We add the getLevel method back to Hopper since mojang removed it - we need the method for hopper optimization
+# We add the method with this name to match the mojmap method of the same name in BlockEntity
+# Since we add the method we need to add the mapping for it so reobf works as expected
+c net/minecraft/world/level/block/entity/Hopper net/minecraft/world/level/block/entity/IHopper
+ m ()Lnet/minecraft/world/level/Level; getLevel k