fix Lol
This commit is contained in:
parent
e1bbd2fa08
commit
b231e5e3d6
1 changed files with 7 additions and 1 deletions
|
@ -71,7 +71,7 @@ public class CommandCore {
|
||||||
public void move (Vec3d position) {
|
public void move (Vec3d position) {
|
||||||
final ClientWorld world = client.world;
|
final ClientWorld world = client.world;
|
||||||
|
|
||||||
if (world == null) return;
|
if (world == null || noPos == null) return;
|
||||||
|
|
||||||
final DimensionType dimension = world.getDimension();
|
final DimensionType dimension = world.getDimension();
|
||||||
|
|
||||||
|
@ -125,6 +125,8 @@ public class CommandCore {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void incrementCurrentBlock () {
|
public void incrementCurrentBlock () {
|
||||||
|
if (withPos == null) return;
|
||||||
|
|
||||||
final BlockPos start = withPos.start;
|
final BlockPos start = withPos.start;
|
||||||
final BlockPos end = withPos.end;
|
final BlockPos end = withPos.end;
|
||||||
|
|
||||||
|
@ -158,6 +160,8 @@ public class CommandCore {
|
||||||
public void run (String command) {
|
public void run (String command) {
|
||||||
final ClientConnection connection = client.getNetworkHandler().getConnection();
|
final ClientConnection connection = client.getNetworkHandler().getConnection();
|
||||||
|
|
||||||
|
if (block == null) return;
|
||||||
|
|
||||||
if (KaboomCheck.INSTANCE.isKaboom) {
|
if (KaboomCheck.INSTANCE.isKaboom) {
|
||||||
connection.send(
|
connection.send(
|
||||||
new UpdateCommandBlockC2SPacket(
|
new UpdateCommandBlockC2SPacket(
|
||||||
|
@ -199,6 +203,8 @@ public class CommandCore {
|
||||||
public CompletableFuture<NbtCompound> runTracked (String command) {
|
public CompletableFuture<NbtCompound> runTracked (String command) {
|
||||||
final ClientConnection connection = client.getNetworkHandler().getConnection();
|
final ClientConnection connection = client.getNetworkHandler().getConnection();
|
||||||
|
|
||||||
|
if (block == null) return new CompletableFuture<>();
|
||||||
|
|
||||||
if (KaboomCheck.INSTANCE.isKaboom) {
|
if (KaboomCheck.INSTANCE.isKaboom) {
|
||||||
connection.send(
|
connection.send(
|
||||||
new UpdateCommandBlockC2SPacket(
|
new UpdateCommandBlockC2SPacket(
|
||||||
|
|
Loading…
Reference in a new issue