forked from ChomeNS/chipmunkmod
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) {
|
||||
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(
|
||||
|
|
Loading…
Reference in a new issue