From 7460ba30122e3004ba7c2c958296c1008cd993b9 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Fri, 8 Jul 2016 22:13:40 +1200 Subject: [PATCH] Fixed falling block --- .../disguise/utilities/ReflectionManager.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/me/libraryaddict/disguise/utilities/ReflectionManager.java b/src/me/libraryaddict/disguise/utilities/ReflectionManager.java index 3a6b2c0d..f2f50711 100644 --- a/src/me/libraryaddict/disguise/utilities/ReflectionManager.java +++ b/src/me/libraryaddict/disguise/utilities/ReflectionManager.java @@ -964,6 +964,19 @@ public class ReflectionManager { ex.printStackTrace(); } + } else if (value instanceof BlockPosition) + { + BlockPosition pos = (BlockPosition) value; + + try + { + return getNmsConstructor("BlockPosition", int.class, int.class, int.class).newInstance(pos.getX(), + pos.getY(), pos.getZ()); + } + catch (Exception ex) + { + ex.printStackTrace(); + } } return value;