Add missing getLevel implementation to Hopper Minecart, add mapping to fix reobf

This commit is contained in:
Jason Penilla 2021-06-14 02:06:46 -07:00
parent 7fe98bd520
commit f7bc641230
No known key found for this signature in database
GPG key ID: 0E75A301420E48F8
2 changed files with 25 additions and 2 deletions

View file

@ -20,3 +20,8 @@ net/minecraft/world/entity/npc/EntityVillagerAbstract fD ()Lnet/minecraft/world/
# BehaviorWorkComposter -> BehaviorWork
net/minecraft/world/entity/ai/behavior/BehaviorWorkComposter a (Lnet/minecraft/server/level/WorldServer;Lnet/minecraft/world/entity/npc/EntityVillager;)V doWork
# We add getLevel to the Hopper interface (implemented by Hoppers and Hopper Minecarts), but this also exists on BlockEntity,
# which Hoppers also extend. We need to map the method we add to the Hopper interface to the same name used for the method on BlockEntity
# to avoid remap causing issues
net/minecraft/world/level/block/entity/IHopper getWorld ()Lnet/minecraft/world/level/World; getLevel