Update ChatReceivedEvent.java

making it trigger when macro is on
This commit is contained in:
Night 2023-06-13 21:54:15 +01:00 committed by GitHub
parent 736d7157b9
commit 0fce0ff63e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -97,7 +97,7 @@ public class ChatReceivedEvent {
Flipper.state = FlipperState.NONE; Flipper.state = FlipperState.NONE;
Lilase.cofl.toggleAuction(); Lilase.cofl.toggleAuction();
} }
if (message.contains("You were spawned in Limbo") || message.contains("joined the lobby!")) { if (Lilase.cofl.isOpen() && (message.contains("You were spawned in Limbo") || message.contains("joined the lobby!"))) {
try { try {
if (this.lockForJoiningSkyblock.isLocked) return; if (this.lockForJoiningSkyblock.isLocked) return;
this.lockForJoiningSkyblock.lock(); this.lockForJoiningSkyblock.lock();