mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-11-05 09:09:40 +01:00
Fix an error for item frames
This commit is contained in:
parent
c31f144c54
commit
3165a6f776
@ -409,9 +409,9 @@ public class PacketHandlerSpawn implements IPacketHandler {
|
|||||||
|
|
||||||
if (disguise.getType() == DisguiseType.ITEM_FRAME) {
|
if (disguise.getType() == DisguiseType.ITEM_FRAME) {
|
||||||
if (data % 2 == 0) {
|
if (data % 2 == 0) {
|
||||||
spawnEntity.getModifier().write(4, loc.getZ() + (data == 0 ? -1 : 1));
|
spawnEntity.getDoubles().write(2, loc.getZ() + (data == 0 ? -1 : 1));
|
||||||
} else {
|
} else {
|
||||||
spawnEntity.getModifier().write(2, loc.getX() + (data == 3 ? -1 : 1));
|
spawnEntity.getDoubles().write(0, loc.getX() + (data == 3 ? -1 : 1));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user