World#spawnArrow should return an AbstractArrow now
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -235,6 +235,12 @@ public class Commodore
|
||||
super.visitMethodInsn( opcode, owner, name, "(I)Lorg/bukkit/map/MapView;", itf );
|
||||
return;
|
||||
}
|
||||
if ( owner.equals( "org/bukkit/World" ) && name.equals( "spawnArrow" ) )
|
||||
{
|
||||
// Should be same size on stack so just call other method
|
||||
super.visitMethodInsn( opcode, owner, name, desc.replace( "Lorg/bukkit/entity/Arrow;", "Lorg/bukkit/entity/AbstractArrow;" ), itf );
|
||||
return;
|
||||
}
|
||||
|
||||
if ( modern )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user