Skip to content

Commit 93a3a92

Browse files
committed
Fix issues with cgamma
1 parent 7a74d4b commit 93a3a92

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

src/main/java/net/earthcomputer/clientcommands/command/GammaCommand.java

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
11
package net.earthcomputer.clientcommands.command;
22

3-
import static com.mojang.brigadier.arguments.DoubleArgumentType.getDouble;
4-
import static com.mojang.brigadier.arguments.DoubleArgumentType.doubleArg;
5-
import static net.earthcomputer.clientcommands.command.ClientCommandManager.addClientSideCommand;
6-
import static net.earthcomputer.clientcommands.command.ClientCommandManager.*;
7-
import static net.minecraft.server.command.CommandManager.argument;
8-
import static net.minecraft.server.command.CommandManager.literal;
9-
103
import com.mojang.brigadier.CommandDispatcher;
114

125
import net.minecraft.client.MinecraftClient;
136
import net.minecraft.server.command.ServerCommandSource;
147
import net.minecraft.text.Text;
158
import net.minecraft.text.TranslatableText;
169

10+
import static com.mojang.brigadier.arguments.DoubleArgumentType.*;
11+
import static net.earthcomputer.clientcommands.command.ClientCommandManager.*;
12+
import static net.minecraft.server.command.CommandManager.*;
13+
1714
public class GammaCommand {
1815

1916
public static void register(CommandDispatcher<ServerCommandSource> dispatcher) {
@@ -30,7 +27,7 @@ private static int setGamma(ServerCommandSource source, double gamma) {
3027
Text feedback = new TranslatableText("commands.cgamma.success", gamma);
3128
sendFeedback(feedback);
3229

33-
return 1;
30+
return 0;
3431
}
3532

3633
}

src/main/resources/assets/clientcommands/lang/en_us.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"commands.cfinditem.starting.keepSearching": "Infinitely searching for %s.",
3737
"commands.cfinditem.total": "Found %dx %s total",
3838

39-
"commands.cgamma.success": "Set gamma to %d",
39+
"commands.cgamma.success": "Set gamma to %f",
4040

4141
"commands.crender.entities.success": "Entity rendering rules have been updated",
4242

0 commit comments

Comments
 (0)