From c7ba97906c10958c8a5b8c08dc1cd47ea22369a8 Mon Sep 17 00:00:00 2001 From: md_5 Date: Wed, 6 Feb 2019 08:08:45 +1100 Subject: [PATCH] Fix incorrect method descriptor in previous commit --- src/main/java/org/bukkit/craftbukkit/util/Commodore.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/bukkit/craftbukkit/util/Commodore.java b/src/main/java/org/bukkit/craftbukkit/util/Commodore.java index dd57c5c323..632df2270c 100644 --- a/src/main/java/org/bukkit/craftbukkit/util/Commodore.java +++ b/src/main/java/org/bukkit/craftbukkit/util/Commodore.java @@ -207,10 +207,10 @@ public class Commodore return; } // SPIGOT-4608 - if ( (owner.equals( "org/bukkit/Bukkit" ) || owner.equals( "org/bukkit/Server" ) ) && name.equals( "getMap" ) && desc.equals( "(Lorg/bukkit/map/MapView;)S" ) ) + if ( (owner.equals( "org/bukkit/Bukkit" ) || owner.equals( "org/bukkit/Server" ) ) && name.equals( "getMap" ) && desc.equals( "(S)Lorg/bukkit/map/MapView;" ) ) { // Should be same size on stack so just call other method - super.visitMethodInsn( opcode, owner, name, "(Lorg/bukkit/map/MapView;)I", itf ); + super.visitMethodInsn( opcode, owner, name, "(I)Lorg/bukkit/map/MapView;", itf ); return; }