mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-30 01:50:50 +01:00
Fix NullPointerException in RemoveFloorItemTask
This commit is contained in:
parent
57b13360ce
commit
0e4e492cac
@ -20,6 +20,9 @@ class RemoveFloorItemTask implements Runnable
|
||||
@Override
|
||||
public void run()
|
||||
{
|
||||
if(this.item == null || this.room == null)
|
||||
return;
|
||||
|
||||
RoomTile tile = this.room.getLayout().getTile(this.item.getX(), this.item.getY());
|
||||
this.room.removeHabboItem(this.item);
|
||||
this.room.updateTile(tile);
|
||||
|
Loading…
Reference in New Issue
Block a user