mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-22 23:10:52 +01:00
Fix NullPointerException in WiredEffectMoveFurniTowards
This commit is contained in:
parent
577530ffe5
commit
efe1fd2258
@ -45,6 +45,7 @@ public class WiredEffectMoveFurniTowards extends InteractionWiredEffect
|
||||
{
|
||||
super(id, userId, item, extradata, limitedStack, limitedSells);
|
||||
this.items = new THashSet<>();
|
||||
this.lastDirections = new THashMap<>();
|
||||
}
|
||||
|
||||
public List<RoomUserRotation> getAvailableDirections(HabboItem item, Room room) {
|
||||
@ -98,6 +99,9 @@ public class WiredEffectMoveFurniTowards extends InteractionWiredEffect
|
||||
|
||||
for(HabboItem item : this.items) {
|
||||
|
||||
if(item == null)
|
||||
continue;
|
||||
|
||||
// direction the furni will move in
|
||||
RoomUserRotation moveDirection = null;
|
||||
RoomUserRotation lastDirection = lastDirections.get(item.getId());
|
||||
|
Loading…
Reference in New Issue
Block a user