Removed item frame disguise as it cannot move and is effectively useless

This commit is contained in:
libraryaddict 2013-11-25 16:52:09 +13:00
parent 4c52a26b46
commit 782e5925b1
3 changed files with 9 additions and 9 deletions

@ -139,7 +139,7 @@ public abstract class Disguise {
case ENDER_CRYSTAL:
case ENDER_DRAGON:
case GHAST:
case ITEM_FRAME:
// case ITEM_FRAME:
case MINECART:
case MINECART_CHEST:
case MINECART_FURNACE:

@ -54,7 +54,7 @@ public enum DisguiseType {
IRON_GOLEM(),
ITEM_FRAME(71),
// ITEM_FRAME(71),
LEASH_HITCH(77),

@ -265,11 +265,11 @@ public class PacketsManager {
// But if someone constructing the disguise uses it properly. It will work.
if (disguise.getType() == DisguiseType.FISHING_HOOK)
data = disguise.getEntity().getEntityId();
else if (disguise.getType() == DisguiseType.ITEM_FRAME) {
data = (int) loc.getYaw();
if (data < 0)
data = -data;
}
/* else if (disguise.getType() == DisguiseType.ITEM_FRAME) {
data = (int) loc.getYaw();
if (data < 0)
data = -data;
}*/
spawnPackets[0] = ProtocolLibrary.getProtocolManager()
.createPacketConstructor(Packets.Server.VEHICLE_SPAWN, nmsEntity, id, data).createPacket(nmsEntity, id, data);
spawnPackets[0].getModifier().write(2, (int) Math.floor(loc.getY() * 32D));
@ -359,7 +359,7 @@ public class PacketsManager {
case WITHER_SKULL:
value -= 128;
break;
case ITEM_FRAME:
// case ITEM_FRAME:
case ARROW:
value = (byte) -value;
break;
@ -385,7 +385,7 @@ public class PacketsManager {
case WITHER_SKULL:
value += 128;
break;
case ITEM_FRAME:
// case ITEM_FRAME:
case ARROW:
value = (byte) -value;
break;