1
0
forked from xjboss/KCauldronX
KCauldronX/patches/org/bukkit/command/defaults/GameModeCommand.java.patch

12 lines
578 B
Diff
Raw Normal View History

2015-03-22 17:38:04 +00:00
--- ../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")) {