mirror of
https://github.com/Lucaslah/No-Report-Button.git
synced 2026-01-05 04:57:52 +00:00
@@ -26,7 +26,8 @@
|
|||||||
|
|
||||||
// Add the IDs of extensions you want installed when the container is created.
|
// Add the IDs of extensions you want installed when the container is created.
|
||||||
"extensions": [
|
"extensions": [
|
||||||
"vscjava.vscode-java-pack"
|
"vscjava.vscode-java-pack",
|
||||||
|
"vscjava.vscode-gradle"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ yarn_mappings=1.19.2+build.1
|
|||||||
loader_version=0.14.8
|
loader_version=0.14.8
|
||||||
|
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
mod_version = 1.2.0
|
mod_version = 1.2.1
|
||||||
maven_group = me.lucaslah
|
maven_group = me.lucaslah
|
||||||
archives_base_name = no-report-button
|
archives_base_name = no-report-button
|
||||||
|
|
||||||
|
|||||||
@@ -33,16 +33,13 @@ public abstract class GameMenuScreenMixin extends Screen {
|
|||||||
for (ClickableWidget button : buttons) {
|
for (ClickableWidget button : buttons) {
|
||||||
if (button.getMessage().getString().equals(I18n.translate("menu.playerReporting"))) {
|
if (button.getMessage().getString().equals(I18n.translate("menu.playerReporting"))) {
|
||||||
button.setWidth(-9999);
|
button.setWidth(-9999);
|
||||||
|
button.active = false;
|
||||||
reportButton = button;
|
reportButton = button;
|
||||||
reportButtonFound = true;
|
reportButtonFound = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (reportButtonFound) {
|
if (reportButtonFound) {
|
||||||
//reportButton.setWidth(-9999);
|
|
||||||
//reportButton.setMessage(Text.of(""));
|
|
||||||
//reportButton.active = false;
|
|
||||||
|
|
||||||
ButtonWidget openToLanButton = this.addDrawableChild(new ButtonWidget(this.width / 2 + 4, this.height / 4 + 96 + -16, 98, 20, Text.translatable("menu.shareToLan"), (button) -> {
|
ButtonWidget openToLanButton = this.addDrawableChild(new ButtonWidget(this.width / 2 + 4, this.height / 4 + 96 + -16, 98, 20, Text.translatable("menu.shareToLan"), (button) -> {
|
||||||
assert this.client != null;
|
assert this.client != null;
|
||||||
this.client.setScreen(new OpenToLanScreen(this));
|
this.client.setScreen(new OpenToLanScreen(this));
|
||||||
|
|||||||
Reference in New Issue
Block a user