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

View File

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

View File

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

View File

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