fix: the previous commit

This commit is contained in:
Chayapak Supasakul 2024-12-29 07:51:43 +07:00
parent 6264013c6b
commit 422b67597f
Signed by: ChomeNS
SSH key fingerprint: SHA256:0YoxhdyXsgbc0nfeB2N6FYE60mxMU7DS4uCUMaw2mvA

View file

@ -83,7 +83,7 @@ public class CustomChat {
public void chat (String message) {
final ClientPlayerEntity player = client.player;
if (player != null) return;
if (player == null) return;
if (!enabled || !player.hasPermissionLevel(2) || !player.isCreative()) {
Chat.sendChatMessage(message, true);