mirror of
https://github.com/Aizistral-Studios/No-Chat-Restrictions.git
synced 2026-02-04 05:38:24 +00:00
Add 'Minecraft#isNameBanned' override
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user