mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-22 23:10:52 +01:00
Fixed NullPointerException in WiredEffectTeleport
This commit is contained in:
parent
2842e8993a
commit
6f5806f3fd
@ -120,8 +120,14 @@ public class WiredEffectTeleport extends InteractionWiredEffect
|
||||
}
|
||||
|
||||
public static void teleportUnitToTile(RoomUnit roomUnit, RoomTile tile) {
|
||||
if(roomUnit == null || tile == null)
|
||||
return;
|
||||
|
||||
Room room = roomUnit.getRoom();
|
||||
|
||||
if(room == null)
|
||||
return;
|
||||
|
||||
// makes a temporary effect
|
||||
room.sendComposer(new RoomUserEffectComposer(roomUnit, 4).compose());
|
||||
Emulator.getThreading().run(new SendRoomUnitEffectComposer(room, roomUnit), WiredHandler.TELEPORT_DELAY);
|
||||
|
Loading…
Reference in New Issue
Block a user