3
0
KCauldronX/patches/org/bukkit/command/defaults/GameModeCommand.java.patch
2015-03-22 20:38:04 +03:00

12 lines
578 B
Diff

--- ../src-base/minecraft/org/bukkit/command/defaults/GameModeCommand.java
+++ ../src-work/minecraft/org/bukkit/command/defaults/GameModeCommand.java
@@ -50,7 +50,7 @@
GameMode mode = GameMode.getByValue(value);
- if (mode == null) {
+ if (mode == null || mode == GameMode.NOT_SET) { // Cauldron
if (modeArg.equalsIgnoreCase("creative") || modeArg.equalsIgnoreCase("c")) {
mode = GameMode.CREATIVE;
} else if (modeArg.equalsIgnoreCase("adventure") || modeArg.equalsIgnoreCase("a")) {