Verify and fix build-data adjustments for 1.18 reobf

This commit is contained in:
Kyle Wood
2021-11-24 03:25:37 -06:00
parent aba531dd60
commit 52a49941da
5 changed files with 8 additions and 22 deletions

View File

@ -12,21 +12,20 @@
tiny 2 0 mojang+yarn spigot
# 1.18 todo: check these
# CraftBukkit changes type
#c net/minecraft/server/level/ServerLevel net/minecraft/server/level/WorldServer
# f Lnet/minecraft/world/level/storage/PrimaryLevelData; serverLevelData E
c net/minecraft/server/level/ServerLevel net/minecraft/server/level/WorldServer
f Lnet/minecraft/world/level/storage/PrimaryLevelData; serverLevelData N
#c net/minecraft/world/level/chunk/LevelChunk net/minecraft/world/level/chunk/Chunk
# f Lnet/minecraft/server/level/ServerLevel; level i
c net/minecraft/world/level/chunk/LevelChunk net/minecraft/world/level/chunk/Chunk
f Lnet/minecraft/server/level/ServerLevel; level q
# 1.18 todo: verify paper still changes this
# Paper changes type
#c net/minecraft/core/MappedRegistry net/minecraft/core/RegistryMaterials
# f Lit/unimi/dsi/fastutil/objects/Reference2IntOpenHashMap; toId bw
c net/minecraft/core/MappedRegistry net/minecraft/core/RegistryMaterials
f Lit/unimi/dsi/fastutil/objects/Reference2IntOpenHashMap; toId bA
# 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
m ()Lnet/minecraft/world/level/Level; getLevel W