fixed stuck rain

refactoring
This commit is contained in:
2025-04-30 23:13:53 +02:00
parent d9bde10c3c
commit 0b97027e00
4 changed files with 21 additions and 6 deletions

View File

@@ -77,7 +77,7 @@ public class Chunk {
object o = Activator.CreateInstance(type, x, y, this);
// check if not empty and overwrite not allowed:
if (Elements[x,y].GetType() != typeof(Element) && !Main.Instance.AllowOverwrite) {
if (!Elements[x,y].IsEmpty() && !Main.Instance.AllowOverwrite) {
return;
}