From 951d60f0aa7914a04a33f2568db52968169beb36 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Sun, 24 Nov 2013 06:38:46 +1300 Subject: [PATCH] Prevent minecarts disguised as minecarts from getting a Y height modifier --- .../disguise/utilities/PacketsManager.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/me/libraryaddict/disguise/utilities/PacketsManager.java b/src/me/libraryaddict/disguise/utilities/PacketsManager.java index 27d8033b..166ecfc2 100644 --- a/src/me/libraryaddict/disguise/utilities/PacketsManager.java +++ b/src/me/libraryaddict/disguise/utilities/PacketsManager.java @@ -374,7 +374,17 @@ public class PacketsManager { case MINECART_HOPPER: case MINECART_MOB_SPAWNER: case MINECART_TNT: - return 0.4; + switch (entity.getType()) { + case MINECART: + case MINECART_CHEST: + case MINECART_FURNACE: + case MINECART_HOPPER: + case MINECART_MOB_SPAWNER: + case MINECART_TNT: + return 0; + default: + return 0.4; + } case ARROW: case BOAT: case EGG: