mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-23 04:32:50 -04:00
You shouldn't be able to fill over active water. (Thanks fam0r)
This commit is contained in:
parent
6e6ca01a5d
commit
26a6dfbec7
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user