You shouldn't be able to fill over active water. (Thanks fam0r)

This commit is contained in:
UnknownShadow200 2017-05-01 20:34:10 +10:00
parent 6e6ca01a5d
commit 26a6dfbec7
2 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ namespace MCGalaxy.Commands.Building {
if (oldBlock == Block.custom_block)
oldExtBlock = p.level.GetExtTile(x, y, z);
if (!BlockPerms.CanModify(p, oldBlock) && !Block.BuildIn(oldBlock)) {
if (!BlockPerms.CanModify(p, oldBlock)) {
Formatter.MessageBlock(p, "fill over ", oldBlock); return false;
}

View File

@ -154,7 +154,7 @@ namespace MCGalaxy.Generator {
int pos = x + Lvl.Width * (z + LiquidLevel * Lvl.Length);
for (ushort yy = 0; LiquidLevel - yy >= 0; yy++) {
if (LiquidLevel - yy > y) {
Lvl.blocks[pos] = Block.water; //better fill the water above me
Lvl.blocks[pos] = Block.waterstill; //better fill the water above me
} else if (LiquidLevel - yy > y - 3) {
byte block = overlay[index] < 0.75f ? Block.sand : Block.gravel; // sand on top
Lvl.blocks[pos] = block;