mirror of
https://github.com/Aizistral-Studios/No-Chat-Restrictions.git
synced 2026-05-14 12:53:32 +08: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.");
|
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);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,4 +26,9 @@ public class MixinMinecraft {
|
|||||||
NCRCore.LOGGER.info("Successfully supplanted UserApiService with a wrapped version.");
|
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