mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-23 15:20:52 +01:00
Fix bot teleporting with wireds (fixes #315)
This commit is contained in:
parent
35f13902ce
commit
f695f2f5b4
@ -107,7 +107,7 @@ public class WiredEffectBotTeleport extends InteractionWiredEffect {
|
||||
int currentEffect = bot.getRoomUnit().getEffectId();
|
||||
|
||||
room.giveEffect(bot.getRoomUnit(), 4, -1);
|
||||
Emulator.getThreading().run(new SendRoomUnitEffectComposer(room, bot.getRoomUnit()), WiredHandler.TELEPORT_DELAY + 1000);
|
||||
Emulator.getThreading().run(() -> room.giveEffect(bot.getRoomUnit(), 0, -1), WiredHandler.TELEPORT_DELAY + 1000);
|
||||
Emulator.getThreading().run(new RoomUnitTeleport(bot.getRoomUnit(), room, item.getX(), item.getY(), item.getZ() + item.getBaseItem().getHeight() + (item.getBaseItem().allowSit() ? -0.50 : 0D), currentEffect), WiredHandler.TELEPORT_DELAY);
|
||||
break;
|
||||
} else {
|
||||
|
@ -55,6 +55,7 @@ public class RoomUnitTeleport implements Runnable {
|
||||
this.room.sendComposer(teleportMessage);
|
||||
|
||||
this.room.updateHabbosAt(t.x, t.y);
|
||||
this.room.updateBotsAt(t.x, t.y);
|
||||
|
||||
topItem = room.getTopItemAt(x, y);
|
||||
if (topItem != null && roomUnit.getCurrentLocation().equals(room.getLayout().getTile((short) x, (short) y))) {
|
||||
|
Loading…
Reference in New Issue
Block a user