diff options
author | Kyle Wood <[email protected]> | 2021-11-24 03:25:37 -0600 |
---|---|---|
committer | MiniDigger | Martin <[email protected]> | 2021-11-30 19:26:33 +0100 |
commit | 1ac7223aae03eb8d3d9ac13851900e93a08fe2da (patch) | |
tree | 0dbfd85a78e040d15447fc5b82768fd031f87b75 /build-data | |
parent | 8f64c190ef1cbe9a93e65aaaa61245b5366a631b (diff) | |
download | Paper-1ac7223aae03eb8d3d9ac13851900e93a08fe2da.tar.gz Paper-1ac7223aae03eb8d3d9ac13851900e93a08fe2da.zip |
Verify and fix build-data adjustments for 1.18 reobf
Diffstat (limited to 'build-data')
-rw-r--r-- | build-data/additional-spigot-member-mappings.csrg | 7 | ||||
-rw-r--r-- | build-data/dev-imports.txt | 2 | ||||
-rw-r--r-- | build-data/mappings-patch.tiny | 2 | ||||
-rw-r--r-- | build-data/reobf-mappings-patch.tiny | 17 |
4 files changed, 8 insertions, 20 deletions
diff --git a/build-data/additional-spigot-member-mappings.csrg b/build-data/additional-spigot-member-mappings.csrg deleted file mode 100644 index c6301f91b6..0000000000 --- a/build-data/additional-spigot-member-mappings.csrg +++ /dev/null @@ -1,7 +0,0 @@ -# CraftBukkit maps all of (mojmap names): -# Merchant.getLevel() -# Entity.getCommandSenderWorld() -# to getWorld(), which confuses our ability to map this method properly. This patch disambiguates it -# 1.18 todo: check these -#net/minecraft/world/item/trading/IMerchant fE ()Lnet/minecraft/world/level/World; getLevel -#net/minecraft/world/entity/npc/EntityVillagerAbstract fE ()Lnet/minecraft/world/level/World; getLevel diff --git a/build-data/dev-imports.txt b/build-data/dev-imports.txt index bed1af5647..b818b96e27 100644 --- a/build-data/dev-imports.txt +++ b/build-data/dev-imports.txt @@ -8,5 +8,3 @@ # To import classes from the vanilla Minecraft jar use `minecraft` as the artifactId: # minecraft net.minecraft.world.level.entity.LevelEntityGetterAdapter # minecraft net/minecraft/world/level/entity/LevelEntityGetter.java - - diff --git a/build-data/mappings-patch.tiny b/build-data/mappings-patch.tiny index a8d8c189af..14a2a3582a 100644 --- a/build-data/mappings-patch.tiny +++ b/build-data/mappings-patch.tiny @@ -1,7 +1,5 @@ tiny 2 0 spigot mojang+yarn -# 1.18 todo: check these - # Originally DistanceManager, which also implements DistanceManager, so clashes since the implemented class # is imported and not fully qualified. Easiest fix is to just change the name c net/minecraft/server/level/PlayerChunkMap$a net/minecraft/server/level/ChunkMap$ChunkDistanceManager diff --git a/build-data/reobf-mappings-patch.tiny b/build-data/reobf-mappings-patch.tiny index 9064425df0..67e82310b4 100644 --- a/build-data/reobf-mappings-patch.tiny +++ b/build-data/reobf-mappings-patch.tiny @@ -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 |