From d751a15c6a722fa5f441fce8a613c588829b735b Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Wed, 12 Aug 2020 17:01:39 +1200 Subject: [PATCH] Fix bad reflection --- .../disguise/utilities/reflection/ReflectionManager.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/java/me/libraryaddict/disguise/utilities/reflection/ReflectionManager.java b/src/main/java/me/libraryaddict/disguise/utilities/reflection/ReflectionManager.java index d2d6663d..563523de 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/reflection/ReflectionManager.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/reflection/ReflectionManager.java @@ -1511,11 +1511,8 @@ public class ReflectionManager { Object iBlockData = idMethod.invoke(null, id); Class iBlockClass = getNmsClass("IBlockData"); - Method getBlock = getNmsMethod(iBlockClass, "getBlock"); - Object block = getBlock.invoke(iBlockData); - return (BlockData) getCraftMethod("block.data.type.CraftBlockData", "fromData", iBlockClass) - .invoke(null, block); + .invoke(null, iBlockData); } catch (Exception ex) { ex.printStackTrace();