Skip to content

Commit 7d2d85d

Browse files
committed
Fix wblockposedit show with position protection
1 parent d865562 commit 7d2d85d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
| **Spider+** | **Spider for Anti-Cheats** | **Matrix, Vulcan** |
3030
| **Jesus+** | **Jesus for Anti-Cheats** | **Matrix, Vulcan** |
3131
| **No Slow+** | **No Slow for Anti-Cheats** | **Matrix, Vulcan, Grim, NCP** |
32-
| **Fast Climb+** | **Fast Climb for Anti-Cheats** | **Spartan** |
32+
| **Fast Climb+** | **Fast Climb for Anti-Cheats** | **Spartan** |
3333
| **Gui Move+** | **Gui Move for Anti-Cheats** | **Matrix, NCP** |
3434
| **Timer+** | **Timer for Anti-Cheats** | **NCP, Intave, Vulcan** |
3535
| **Safe mine** | **Prevents player from lava** | **Matrix** |

src/main/java/nekiplay/meteorplus/mixin/meteorclient/gui/WBlockPosEditMixin.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ public class WBlockPosEditMixin extends WHorizontalList {
3636
private boolean clicking;
3737
@Inject(method = "addTextBox", at = @At("HEAD"), cancellable = true)
3838
private void addTextBox(CallbackInfo ci) {
39-
this.textBoxX = (WTextBox)this.add(this.theme.textBox(Integer.toString(this.value.getX()), this::filter)).minWidth(75.0).widget();
40-
this.textBoxY = (WTextBox)this.add(this.theme.textBox(Integer.toString(this.value.getY()), this::filter)).minWidth(75.0).widget();
41-
this.textBoxZ = (WTextBox)this.add(this.theme.textBox(Integer.toString(this.value.getZ()), this::filter)).minWidth(75.0).widget();
39+
this.textBoxX = this.add(this.theme.textBox(Integer.toString(this.value.getX()), this::filter)).minWidth(75.0).widget();
40+
this.textBoxY = this.add(this.theme.textBox(Integer.toString(this.value.getY()), this::filter)).minWidth(75.0).widget();
41+
this.textBoxZ = this.add(this.theme.textBox(Integer.toString(this.value.getZ()), this::filter)).minWidth(75.0).widget();
4242
this.textBoxX.actionOnUnfocused = () -> {
4343
try {
4444
this.lastValue = this.value;
@@ -97,7 +97,7 @@ private void addTextBox(CallbackInfo ci) {
9797
private boolean filter(String text, char c) {
9898
boolean validate = true;
9999
boolean good;
100-
if (c == '-' && text.isEmpty()) {
100+
if (c == '-' && text.isEmpty() || text.equals("***")) {
101101
good = true;
102102
validate = false;
103103
} else {

0 commit comments

Comments
 (0)