Fix /unflood all not working with renamed active water/lava

This commit is contained in:
UnknownShadow200 2018-06-29 12:47:06 +10:00
parent 436fb719ad
commit 8371ed505e

View File

@ -35,9 +35,8 @@ namespace MCGalaxy.Commands.World {
CmdPhysics.SetPhysics(p.level, 0); CmdPhysics.SetPhysics(p.level, 0);
Command cmd = Command.Find("ReplaceAll"); Command cmd = Command.Find("ReplaceAll");
string args = message.CaselessEq("all") ? string args = !message.CaselessEq("all") ? message :
"lavafall waterfall lava_fast active_lava active_water " + "8 10 lavafall waterfall lava_fast active_hot_lava active_cold_water fast_hot_lava magma geyser";
"active_hot_lava active_cold_water fast_hot_lava magma geyser" : message;
cmd.Use(p, args + " air"); cmd.Use(p, args + " air");
CmdPhysics.SetPhysics(p.level, phys); CmdPhysics.SetPhysics(p.level, phys);