Removed item frame disguise as it cannot move and is effectively useless
This commit is contained in:
parent
4c52a26b46
commit
782e5925b1
@ -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) {
|
||||
/* 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;
|
||||
|
Loading…
Reference in New Issue
Block a user