mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-26 23:02:04 -04:00
Quick fix for maps not being saved on unload under certain conditions.
This commit is contained in:
parent
78e57fcb22
commit
2df90766d3
@ -89,6 +89,7 @@ namespace MCGalaxy {
|
|||||||
public void SetTile(int b, byte type) {
|
public void SetTile(int b, byte type) {
|
||||||
if (blocks == null || b < 0 || b >= blocks.Length) return;
|
if (blocks == null || b < 0 || b >= blocks.Length) return;
|
||||||
blocks[b] = type;
|
blocks[b] = type;
|
||||||
|
changed = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SetTile(ushort x, ushort y, ushort z, byte type) {
|
public void SetTile(ushort x, ushort y, ushort z, byte type) {
|
||||||
@ -132,6 +133,7 @@ namespace MCGalaxy {
|
|||||||
byte oldType = blocks[b];
|
byte oldType = blocks[b];
|
||||||
blocks[b] = type;
|
blocks[b] = type;
|
||||||
byte oldExtType = 0;
|
byte oldExtType = 0;
|
||||||
|
changed = true;
|
||||||
|
|
||||||
if (oldType == Block.custom_block) {
|
if (oldType == Block.custom_block) {
|
||||||
oldExtType = GetExtTile(x, y, z);
|
oldExtType = GetExtTile(x, y, z);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user