Skip to content

Commit 87c3be9

Browse files
committed
Added a warning message when placing a Door Thing without a Door Slab
1 parent 8f25174 commit 87c3be9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Scenes/Instances.gd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,9 @@ func place_new_thing(newThingType, newSubtype, newPosition, newOwnership): # Pla
324324
goldID.queue_free()
325325
id.locationX = locX
326326
id.locationY = locY
327+
elif id.thingType == Things.TYPE.DOOR:
328+
if Slabs.door_data.has(slabID) == false:
329+
oMessage.big("Warning","You placed a Door Thing without a Door Slab. Switch to Slab Mode and place a Door Slab for proper functionality.")
327330
return id
328331

329332
#Slabset.obj.IS_LIGHT, # [0] IsLight [0-1]

0 commit comments

Comments
 (0)