Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,11 @@ void onSendMessage(String content, Operation<Void> original) {
if (!EventFlow.post(event).isCanceled())
original.call(event.getMessage());
}

@Inject(method = "onOverlayMessage", at = @At("HEAD"), cancellable = true)
void onOverlayMessage(OverlayMessageS2CPacket packet, CallbackInfo ci) {
if (NoRender.getNo2b2tActionText() && packet.text().getString().equals("2b2t.org")) {
ci.cancel();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ object NoRender : Module(
@JvmStatic val noBossBar by setting("No Boss Bar", false).group(Group.Hud)
@JvmStatic val noScoreBoard by setting("No Score Board", false).group(Group.Hud)
@JvmStatic val noStatusEffects by setting("No Status Effects", false).group(Group.Hud)
@JvmStatic val no2b2tActionText by setting("No 2b2t Action Text", true, description = "Blocks the '2b2t.org' text from the action bar 2b2t randomly sends").group(Group.Hud)

@JvmStatic val noArmor by setting("No Armor", false).group(Group.Entity)
@JvmStatic val includeNoOtherHeadItems by setting("Include No Other Head Items", false) { noArmor }.group(Group.Entity)
Expand Down