mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-01-18 23:46:28 +01:00
fixed classCastException in UpdateSTackHeightComposer
This commit is contained in:
parent
6f0fcafb7b
commit
edff4dbb53
@ -29,7 +29,7 @@ public class UpdateStackHeightComposer extends MessageComposer {
|
||||
this.response.init(Outgoing.UpdateStackHeightComposer);
|
||||
if (this.updateTiles != null) {
|
||||
if(this.updateTiles.size() > 4) {
|
||||
RoomTile[] tiles = (RoomTile[])this.updateTiles.toArray();
|
||||
RoomTile[] tiles = this.updateTiles.toArray(new RoomTile[updateTiles.size()]);
|
||||
this.response.appendByte(4);
|
||||
for(int i = 0; i < 4; i++) {
|
||||
RoomTile t = tiles[i];
|
||||
|
Loading…
Reference in New Issue
Block a user