diff options
author | HacktheTime <l4bg0jb7@duck.com> | 2023-11-12 10:32:05 +0100 |
---|---|---|
committer | HacktheTime <l4bg0jb7@duck.com> | 2023-11-12 10:32:05 +0100 |
commit | 85c9867682f497051d4d9db4960aa62273bb6204 (patch) | |
tree | 7a32d2d1f6041726673491d1cf2f9489bea71df2 /fabric | |
parent | ce208c31079689527a489eab2b54765591a8507f (diff) | |
download | BBsentials-85c9867682f497051d4d9db4960aa62273bb6204.tar.gz BBsentials-85c9867682f497051d4d9db4960aa62273bb6204.tar.bz2 BBsentials-85c9867682f497051d4d9db4960aa62273bb6204.zip |
fixed a crash regarding numpad config
removed primal fear notifications again.
Diffstat (limited to 'fabric')
-rw-r--r-- | fabric/src/main/java/de/hype/bbsentials/fabric/numpad/NumPadCodeConfigScreen.java | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/fabric/src/main/java/de/hype/bbsentials/fabric/numpad/NumPadCodeConfigScreen.java b/fabric/src/main/java/de/hype/bbsentials/fabric/numpad/NumPadCodeConfigScreen.java index bf9c25f..6c2b28b 100644 --- a/fabric/src/main/java/de/hype/bbsentials/fabric/numpad/NumPadCodeConfigScreen.java +++ b/fabric/src/main/java/de/hype/bbsentials/fabric/numpad/NumPadCodeConfigScreen.java @@ -124,12 +124,9 @@ public class NumPadCodeConfigScreen extends Screen { new NoticeScreen(() -> MinecraftClient.getInstance().setScreen(this), Text.of(""), Text.of("§cInvalid Code / already used!")); return; } - if (codeTextField.forbiddenCode(codeTextField.getText())) { - new NoticeScreen(() -> MinecraftClient.getInstance().setScreen(this), Text.of(""), Text.of("§cNo Command specified")); - return; - } + code.code = codeTextField.getText(); code.commands = new ArrayList<>(commandFields.stream().map(TextFieldWidget::getText).toList()); - code.commandDelay = new ArrayList<>(commandFields.stream().map((field) -> { + code.commandDelay = new ArrayList<>(delayFields.stream().map((field) -> { String text = field.getText(); if (text.isEmpty()) return 1.0; return Double.parseDouble(text); |