From 2c905e38b2ea11d3441936d78a85056883c4a72d Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Thu, 19 Jun 2014 09:26:54 +1200 Subject: [PATCH] Add the switch cases for MINECART_COMMAND --- src/me/libraryaddict/disguise/disguisetypes/Disguise.java | 1 + src/me/libraryaddict/disguise/utilities/DisguiseValues.java | 1 + src/me/libraryaddict/disguise/utilities/PacketsManager.java | 3 +++ 3 files changed, 5 insertions(+) diff --git a/src/me/libraryaddict/disguise/disguisetypes/Disguise.java b/src/me/libraryaddict/disguise/disguisetypes/Disguise.java index efebd15e..b7ab5d84 100644 --- a/src/me/libraryaddict/disguise/disguisetypes/Disguise.java +++ b/src/me/libraryaddict/disguise/disguisetypes/Disguise.java @@ -144,6 +144,7 @@ public abstract class Disguise { case ITEM_FRAME: case MINECART: case MINECART_CHEST: + case MINECART_COMMAND: case MINECART_FURNACE: case MINECART_HOPPER: case MINECART_MOB_SPAWNER: diff --git a/src/me/libraryaddict/disguise/utilities/DisguiseValues.java b/src/me/libraryaddict/disguise/utilities/DisguiseValues.java index 5eb68871..3f773073 100644 --- a/src/me/libraryaddict/disguise/utilities/DisguiseValues.java +++ b/src/me/libraryaddict/disguise/utilities/DisguiseValues.java @@ -17,6 +17,7 @@ public class DisguiseValues { type = DisguiseType.HORSE; break; case MINECART_CHEST: + case MINECART_COMMAND: case MINECART_FURNACE: case MINECART_HOPPER: case MINECART_TNT: diff --git a/src/me/libraryaddict/disguise/utilities/PacketsManager.java b/src/me/libraryaddict/disguise/utilities/PacketsManager.java index f75f2e00..96c94be6 100644 --- a/src/me/libraryaddict/disguise/utilities/PacketsManager.java +++ b/src/me/libraryaddict/disguise/utilities/PacketsManager.java @@ -359,6 +359,7 @@ public class PacketsManager { switch (disguiseType) { case MINECART: case MINECART_CHEST: + case MINECART_COMMAND: case MINECART_FURNACE: case MINECART_HOPPER: case MINECART_MOB_SPAWNER: @@ -390,6 +391,7 @@ public class PacketsManager { switch (disguiseType) { case MINECART: case MINECART_CHEST: + case MINECART_COMMAND: case MINECART_FURNACE: case MINECART_HOPPER: case MINECART_MOB_SPAWNER: @@ -455,6 +457,7 @@ public class PacketsManager { if (entity instanceof LivingEntity) return yMod + ((LivingEntity) entity).getEyeHeight(); case MINECART: + case MINECART_COMMAND: case MINECART_CHEST: case MINECART_FURNACE: case MINECART_HOPPER: