mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-23 08:46:44 +01:00
Fix 1.16 binary mappings not applying to modern plugins
This commit is contained in:
parent
f7ff58c6c5
commit
68b98b3d24
1 changed files with 20 additions and 20 deletions
|
@ -139,6 +139,26 @@ public class Commodore
|
|||
@Override
|
||||
public void visitFieldInsn(int opcode, String owner, String name, String desc)
|
||||
{
|
||||
if ( owner.equals( "org/bukkit/block/Biome" ) )
|
||||
{
|
||||
switch ( name )
|
||||
{
|
||||
case "NETHER":
|
||||
super.visitFieldInsn( opcode, owner, "NETHER_WASTES", desc );
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if ( owner.equals( "org/bukkit/entity/EntityType" ) )
|
||||
{
|
||||
switch ( name )
|
||||
{
|
||||
case "PIG_ZOMBIE":
|
||||
super.visitFieldInsn( opcode, owner, "ZOMBIFIED_PIGLIN", desc );
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if ( modern )
|
||||
{
|
||||
if ( owner.equals( "org/bukkit/Material" ) )
|
||||
|
@ -219,26 +239,6 @@ public class Commodore
|
|||
}
|
||||
}
|
||||
|
||||
if ( owner.equals( "org/bukkit/block/Biome" ) )
|
||||
{
|
||||
switch ( name )
|
||||
{
|
||||
case "NETHER":
|
||||
super.visitFieldInsn( opcode, owner, "NETHER_WASTES", desc );
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if ( owner.equals( "org/bukkit/entity/EntityType" ) )
|
||||
{
|
||||
switch ( name )
|
||||
{
|
||||
case "PIG_ZOMBIE":
|
||||
super.visitFieldInsn( opcode, owner, "ZOMBIFIED_PIGLIN", desc );
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
super.visitFieldInsn( opcode, owner, name, desc );
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue