mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2024-12-27 05:00:08 +08:00
/green now fails a bit less.
This commit is contained in:
parent
3c92bd9451
commit
2893438f8e
@ -2075,15 +2075,15 @@ public int green(Vector pos, double radius)
|
||||
Vector pt = new Vector(x, y, z);
|
||||
int id = getBlockType(pt);
|
||||
|
||||
if (id == 0)
|
||||
if (id == 0 || id == BlockID.SNOW)
|
||||
continue;
|
||||
|
||||
if (id == BlockID.DIRT) {
|
||||
if (setBlock(pt, grass)) {
|
||||
++affected;
|
||||
}
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user