Originally Posted by
lare96
had the same problem, let me see how you're sending the items on the interface
Code:
public ActionSender sendUpdateItems(int interfaceId, Item[] items) {
StreamBuffer.OutBuffer out = StreamBuffer.newOutBuffer(5 + (items.length * 7));
out.writeVariableShortPacketHeader(player.getEncryptor(), 53);
out.writeShort(interfaceId);
out.writeShort(items.length);
for (Item item : items) {
if (item != null) {
if (item.getCount() > 254) {
out.writeByte(255);
out.writeInt(item.getCount(), ByteOrder.INVERSE_MIDDLE);
} else {
out.writeByte(item.getCount());
}
out.writeShort(item.getId() + 1, ValueType.A, ByteOrder.LITTLE);
} else {
out.writeByte(0);
out.writeShort(0, ValueType.A, ByteOrder.LITTLE);
}
}
out.finishVariableShortPacketHeader();
player.send(out.getBuffer());
return this;
}