Skip to content

Commit

Permalink
Fix missing return value
Browse files Browse the repository at this point in the history
  • Loading branch information
acrylic-style committed Jul 22, 2022
1 parent ea5be8c commit fbece00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MagmaCube-Patches/0005-Client-side-command-support.patch
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ index cbb0034363a39c6e2aa97bac4182daf60ede86c2..cf3915675346e0d869e71167352bbb32
this.currentParse = commandDispatcher.parse(stringReader, this.minecraft.player.connection.getSuggestionsProvider());
}
diff --git a/src/main/java/net/minecraft/client/gui/screens/ChatScreen.java b/src/main/java/net/minecraft/client/gui/screens/ChatScreen.java
index 3340e2ef189f529d231fed8ef4606a759fe64392..b9a13cd63c750315907e8636dfdab88744149a8e 100644
index 3340e2ef189f529d231fed8ef4606a759fe64392..d4432ae7fb7990af723555050b52a0789162036b 100644
--- a/src/main/java/net/minecraft/client/gui/screens/ChatScreen.java
+++ b/src/main/java/net/minecraft/client/gui/screens/ChatScreen.java
@@ -469,6 +469,12 @@ public class ChatScreen extends Screen {
Expand All @@ -34,7 +34,7 @@ index 3340e2ef189f529d231fed8ef4606a759fe64392..b9a13cd63c750315907e8636dfdab887
+ // Blueberry start
+ if (net.blueberrymc.client.commands.ClientCommandManager.hasCommand(s)) {
+ net.blueberrymc.client.commands.ClientCommandManager.performCommand(this.minecraft.player.createCommandSourceStack(), s);
+ return;
+ return true;
+ }
+ // Blueberry end
this.minecraft.player.commandSigned(s.substring(1), component);
Expand Down

0 comments on commit fbece00

Please sign in to comment.