mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-24 05:03:34 -04:00
Fix /blockdb disable/enable still putting changes in memory, though not saving to disc.
This commit is contained in:
parent
8832c1dd45
commit
9f9037a4e2
@ -84,7 +84,8 @@ namespace MCGalaxy.Blocks {
|
||||
sbyte num = C4Physics.NextCircuit(p.level);
|
||||
p.level.C4list.Add(new C4Data(num));
|
||||
p.c4circuitNumber = num;
|
||||
Player.Message(p, "Place more blocks for more c4, then place a &c{0} %Sblock for the detonator.", Block.Name(Block.red));
|
||||
Player.Message(p, "Place more blocks for more c4, then place a &c{0} %Sblock for the detonator.",
|
||||
p.level.BlockName(Block.red, 0));
|
||||
}
|
||||
|
||||
C4Data c4 = C4Physics.Find(p.level, p.c4circuitNumber);
|
||||
|
@ -47,10 +47,14 @@ namespace MCGalaxy.Commands.World {
|
||||
Player.Message(p, "Cleared &cALL %Sblock changes for " + lvl.ColoredName);
|
||||
} else if (args[0].CaselessEq("disable")) {
|
||||
lvl.UseBlockDB = false;
|
||||
lvl.BlockDB.Cache.Enabled = false;
|
||||
|
||||
Player.Message(p, "&cDisabled %Srecording further block changes for " + lvl.ColoredName);
|
||||
Level.SaveSettings(lvl);
|
||||
} else if (args[0].CaselessEq("enable")) {
|
||||
lvl.UseBlockDB = true;
|
||||
lvl.BlockDB.Cache.Enabled = true;
|
||||
|
||||
Player.Message(p, "&aEnabled %Srecording further block changes for " + lvl.ColoredName);
|
||||
Level.SaveSettings(lvl);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user