From ce9effd35bfb0a1783ebb4e89a11ae30eafeeae7 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Tue, 4 Sep 2018 06:05:02 +1000 Subject: [PATCH] Fix /zs set pillaring and /zs set build --- MCGalaxy/Commands/Fun/ZombieSurvival/CmdZombieSurvival.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MCGalaxy/Commands/Fun/ZombieSurvival/CmdZombieSurvival.cs b/MCGalaxy/Commands/Fun/ZombieSurvival/CmdZombieSurvival.cs index ce62d407b..83fd81f3d 100644 --- a/MCGalaxy/Commands/Fun/ZombieSurvival/CmdZombieSurvival.cs +++ b/MCGalaxy/Commands/Fun/ZombieSurvival/CmdZombieSurvival.cs @@ -55,12 +55,12 @@ namespace MCGalaxy.Commands.Fun { cfg.Save(); return; } else if (prop.CaselessEq("pillaring")) { - if (!CommandParser.GetBool(p, args[1], ref lCfg.Pillaring)) return; + if (!CommandParser.GetBool(p, args[2], ref lCfg.Pillaring)) return; p.Message("Set pillaring allowed to &b" + lCfg.Pillaring); game.UpdateAllStatus2(); } else if (prop.CaselessEq("build")) { - if (!CommandParser.GetEnum(p, args[1], "Build type", ref lCfg.BuildType)) return; + if (!CommandParser.GetEnum(p, args[2], "Build type", ref lCfg.BuildType)) return; p.level.UpdateBlockPermissions(); p.Message("Set build type to &b" + lCfg.BuildType);