enabled overwrite of existing pixels
This commit is contained in:
@@ -76,8 +76,8 @@ public class Chunk {
|
||||
Type type = typeof(T);
|
||||
object o = Activator.CreateInstance(type, x, y, this);
|
||||
|
||||
// check if not empty:
|
||||
if (Elements[x,y].GetType() != typeof(Element)) {
|
||||
// check if not empty and overwrite not allowed:
|
||||
if (Elements[x,y].GetType() != typeof(Element) && !Main.Instance.AllowOverwrite) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user