Fix CannonKick Null Point Exception

This commit is contained in:
brenoepic 2022-12-31 07:16:01 +00:00
parent f6dddbdde6
commit 164908e5e2

View File

@ -26,6 +26,8 @@ public class CannonKickAction implements Runnable {
@Override @Override
public void run() { public void run() {
if(this.cannon == null || this.room == null || this.room.getLayout() == null) return;
if (this.client != null) { if (this.client != null) {
this.client.getHabbo().getRoomUnit().setCanWalk(true); this.client.getHabbo().getRoomUnit().setCanWalk(true);
} }