Fix argument order of tile item message ctor call

Rearrange the arguments passed to the SendTileItemUpdateMessage
constructor when recording a ground item RegionUpdate.  Fixes #316.
This commit is contained in:
Gary Tierney
2017-05-23 01:40:31 +01:00
parent d8f4aa88fe
commit 0559c4093c
@@ -27,7 +27,7 @@ public final class ItemUpdateOperation extends UpdateOperation<GroundItem> {
@Override
protected RegionUpdateMessage add(int offset) {
return new SendPublicTileItemMessage(entity.getItem(), offset, entity.getOwnerIndex());
return new SendPublicTileItemMessage(entity.getItem(), entity.getOwnerIndex(), offset);
}
@Override