fix: no comment

This commit is contained in:
ChomeNS
2025-01-04 10:52:44 +07:00
parent da998c050a
commit f3e502682c
3 changed files with 7 additions and 3 deletions

View File

@@ -1 +1 @@
1422
1425

View File

@@ -234,7 +234,11 @@ public class CorePlugin extends PositionPlugin.Listener {
}
public void runPlaceBlock (String command) {
bot.executorService.submit(() -> placeBlockQueue.add(command));
try {
placeBlockQueue.add(command);
} catch (Exception e) {
e.printStackTrace();
}
}
private void forceRunPlaceBlock (String command) {

View File

@@ -74,7 +74,7 @@ public class PositionPlugin extends Bot.Listener {
}
public void packetReceived (ClientboundPlayerPositionPacket packet) {
bot.session.send(new ServerboundAcceptTeleportationPacket(packet.getId()));
if (bot.session != null) bot.session.send(new ServerboundAcceptTeleportationPacket(packet.getId()));
position = packet.getPosition();