Cleanup Explosion patch but keep bin compatibility by using asm hacks. Closes #9817

This commit is contained in:
LexManos committed 2023-12-21 11:22:31 -08:00
1 parent b04118982f
commit ed2ba0f52c
2 files changed
+3 -18

No files matched your search

@@ -7,7 +7,9 @@ var InsnNode = Java.type('org.objectweb.asm.tree.InsnNode')
function initializeCoreMod() {
return {
"getLanguage_bouncer": addBouncer("net.minecraft.network.play.client.CClientSettingsPacket", "func_149524_c", "getLanguage", "()Ljava/lang/String;"),
//TODO: Remove in 1.20.5+
"getPosition_bouncer": addBouncer("net.minecraft.world.level.Explosion", "m_307721_", "getPosition", "()Lnet/minecraft/world/phys/Vec3;"),
"getExploder_bouncer": addBouncer("net.minecraft.world.level.Explosion", "m_253049_", "getExploder", "()Lnet/minecraft/world/entity/Entity;"),
}
}