9
0
mirror of https://github.com/LeavesMC/Leaves.git synced 2025-12-29 11:59:17 +00:00

fix: fix bot command register

This commit is contained in:
MC_XiaoHei
2025-09-02 21:27:14 +08:00
parent d0a41bb957
commit 63fdbf0770

View File

@@ -135,7 +135,7 @@ public final class LeavesConfig {
private static class FakeplayerValidator extends BooleanConfigValidator {
@Override
public void verify(Boolean old, Boolean value) throws IllegalArgumentException {
if (old == null || old.equals(value)) {
if (value.equals(old)) {
return;
}
if (value) {