From 45d42b1c6b5b728b2f807579ddc99c9508b74153 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Thu, 10 Sep 2020 11:55:56 +1200 Subject: [PATCH] Fix 1.12 falling block --- .../disguise/utilities/reflection/ReflectionManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 db75693a..5e191ef4 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/reflection/ReflectionManager.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/reflection/ReflectionManager.java @@ -147,11 +147,11 @@ public class ReflectionManager { soundGetMethod = getCraftMethod("CraftSound", "getSound", Sound.class); vector3FConstructor = getNmsConstructor("Vector3f", float.class, float.class, float.class); enumDirectionFrom = getNmsMethod("EnumDirection", "fromType1", int.class); + getBlockData = getNmsMethod(getNmsClass("Block"), "getBlockData"); if (NmsVersion.v1_13.isSupported()) { craftBlockDataGetState = getCraftMethod("block.data.CraftBlockData", "getState"); magicGetBlock = getCraftMethod("util.CraftMagicNumbers", "getBlock", Material.class); - getBlockData = getNmsMethod(getNmsClass("Block"), "getBlockData"); entityTypesAMethod = getNmsMethod("EntityTypes", "a", String.class); if (NmsVersion.v1_14.isSupported()) {