Fix isUsable ObjectUpdateMessageComposer

This commit is contained in:
brenoepic 2022-04-29 20:35:07 -03:00
parent f99d7168bb
commit d9b0ce7e36

View File

@ -18,7 +18,7 @@ public class ObjectUpdateMessageComposer extends MessageComposer {
protected ServerMessage composeInternal() {
this.response.init(Outgoing.ObjectUpdateMessageComposer);
this.item.serializeFloorData(this.response);
this.response.appendInt(this.item instanceof InteractionGift ? ((((InteractionGift) this.item).getColorId() * 1000) + ((InteractionGift) this.item).getRibbonId()) : (this.item instanceof InteractionMusicDisc ? ((InteractionMusicDisc) this.item).getSongId() : item.isUsable() ? 0 : 0));
this.response.appendInt(this.item instanceof InteractionGift ? ((((InteractionGift) this.item).getColorId() * 1000) + ((InteractionGift) this.item).getRibbonId()) : (this.item instanceof InteractionMusicDisc ? ((InteractionMusicDisc) this.item).getSongId() : item.isUsable() ? 1 : 0));
this.item.serializeExtradata(this.response);
this.response.appendInt(-1);
this.response.appendInt(0);