Skip to content

Commit 59108e1

Browse files
committed
change: Bump for release
1 parent f7a36f4 commit 59108e1

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ org.gradle.jvmargs=-Xmx2G
88
loader_version=0.17.2
99

1010
# Mod Properties
11-
mod_version = 1.0.1
11+
mod_version = 1.0.2
1212
maven_group = me.flashyreese.mods
1313
archives_base_name = commandaliases
1414

src/main/java/me/flashyreese/mods/commandaliases/command/builder/custom/ClientCustomCommandBuilder.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
import net.minecraft.command.CommandRegistryAccess;
1313
import net.minecraft.text.Text;
1414

15-
import java.util.Objects;
16-
1715
/**
1816
* Represents the Client Custom Command Builder
1917
* <p>
@@ -32,10 +30,10 @@ public ClientCustomCommandBuilder(String filePath, CustomCommand commandAliasPar
3230
protected int dispatcherExecute(CustomCommandAction action, CommandDispatcher<FabricClientCommandSource> dispatcher, CommandContext<FabricClientCommandSource> context, String actionCommand) throws CommandSyntaxException {
3331
int state = 0;
3432
if (action.getCommandType() == CommandType.CLIENT) {
35-
context.getSource().getPlayer().sendMessage(Text.literal("/" + actionCommand), false);
36-
state = Command.SINGLE_SUCCESS;
33+
state = dispatcher.execute(actionCommand, context.getSource());
3734
} else if (action.getCommandType() == CommandType.SERVER) {
38-
state = Objects.requireNonNull(context.getSource().getWorld().getServer()).getCommandManager().getDispatcher().execute(actionCommand, Objects.requireNonNull(context.getSource().getWorld().getServer()).getCommandSource());
35+
context.getSource().getPlayer().networkHandler.sendChatCommand(actionCommand); // Todo: Dangerous might cause abuse by spammers
36+
state = Command.SINGLE_SUCCESS;
3937
}
4038
return state;
4139
}

0 commit comments

Comments
 (0)