Matter wont consume if theres a wall already (#19518)

This commit is contained in:
Henri215
2022-10-28 20:04:26 +02:00
committed by GitHub
parent 6de0011ee1
commit 0a3111f6cf
+2
View File
@@ -378,6 +378,8 @@
to_chat(user, "Building Wall...")
playsound(loc, 'sound/machines/click.ogg', 50, 1)
if(do_after(user, 20 * toolspeed, target = A))
if(!isfloorturf(A))
return FALSE
if(!useResource(3, user))
return FALSE
playsound(loc, usesound, 50, 1)