mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 01:05:38 +00:00
Don't double toggle in /toggle. Fixes #193
This commit is contained in:
parent
d82d6fd704
commit
adb3834836
@ -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
|
||||
|
@ -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."));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user