mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-22 12:05:51 -04:00
Fix replacing an existing message block causing all message blocks in the map to be changed to the new message block, oops. (Thanks goodlyay)
This commit is contained in:
parent
11b3238630
commit
1d9aa1910b
@ -111,7 +111,7 @@ namespace MCGalaxy.Commands.Building {
|
||||
|
||||
string syntax = Messages.Rows.Count == 0 ?
|
||||
"INSERT INTO `Messages" + p.level.name + "` (X, Y, Z, Message) VALUES (@0, @1, @2, @3)"
|
||||
: "UPDATE `Messages" + p.level.name + "` SET X=@0, Y=@1, Z=@2, Message=@3";
|
||||
: "UPDATE `Messages" + p.level.name + "` SET Message=@3 WHERE X=@0, Y=@1, Z=@2";
|
||||
Database.Execute(syntax, x, y, z, cpos.message);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user