Don't double toggle in /toggle. Fixes #193

This commit is contained in:
unknown 2014-06-22 16:56:02 +02:00
parent d82d6fd704
commit adb3834836
2 changed files with 3 additions and 4 deletions

View File

@ -1,3 +1,3 @@
#Build Number for ANT. Do not edit!
#Sun Jun 22 16:49:17 CEST 2014
build.number=863
#Sun Jun 22 16:53:34 CEST 2014
build.number=864

View File

@ -69,8 +69,8 @@ public class Command_toggle extends TFM_Command
if (args[0].equals("firespread"))
{
TFM_GameRuleHandler.setGameRule(TFM_GameRule.DO_FIRE_TICK, TFM_ConfigEntry.ALLOW_FIRE_SPREAD.getBoolean());
toggle("Fire spread is", TFM_ConfigEntry.ALLOW_FIRE_SPREAD);
TFM_GameRuleHandler.setGameRule(TFM_GameRule.DO_FIRE_TICK, TFM_ConfigEntry.ALLOW_FIRE_SPREAD.getBoolean());
return true;
}
@ -187,7 +187,6 @@ public class Command_toggle extends TFM_Command
private void toggle(String name, TFM_ConfigEntry entry)
{
entry.setBoolean(!entry.getBoolean());
playerMsg(name + " now " + (entry.setBoolean(!entry.getBoolean()) ? "enabled." : "disabled."));
}
}