This commit is contained in:
Chayapak 2023-08-31 18:57:48 +07:00
parent e1bbd2fa08
commit b231e5e3d6

View file

@ -71,7 +71,7 @@ public class CommandCore {
public void move (Vec3d position) {
final ClientWorld world = client.world;
if (world == null) return;
if (world == null || noPos == null) return;
final DimensionType dimension = world.getDimension();
@ -125,6 +125,8 @@ public class CommandCore {
}
public void incrementCurrentBlock () {
if (withPos == null) return;
final BlockPos start = withPos.start;
final BlockPos end = withPos.end;
@ -158,6 +160,8 @@ public class CommandCore {
public void run (String command) {
final ClientConnection connection = client.getNetworkHandler().getConnection();
if (block == null) return;
if (KaboomCheck.INSTANCE.isKaboom) {
connection.send(
new UpdateCommandBlockC2SPacket(
@ -199,6 +203,8 @@ public class CommandCore {
public CompletableFuture<NbtCompound> runTracked (String command) {
final ClientConnection connection = client.getNetworkHandler().getConnection();
if (block == null) return new CompletableFuture<>();
if (KaboomCheck.INSTANCE.isKaboom) {
connection.send(
new UpdateCommandBlockC2SPacket(