Add 'Minecraft#isNameBanned' override

This commit is contained in:
Aizistral
2026-01-28 22:21:02 +01:00
parent c5b58bece9
commit ec7f3c2170
2 changed files with 10 additions and 0 deletions

View File

@@ -26,4 +26,9 @@ public class MixinMinecraft {
NCRCore.LOGGER.info("Successfully supplanted UserApiService with a wrapped version.");
}
@Inject(method = { "m_294837_", "isNameBanned" }, at = @At("HEAD"), cancellable = true)
public void onCheckNameBan(CallbackInfoReturnable<Boolean> info) {
info.setReturnValue(Boolean.FALSE);
}
}