mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 12:41:09 +01:00
Fixes buckling onto tiles with dense atoms (#63277)
Before this change, you could put a dense object (like a computer frame) over a chair and buckle to it. This fixes that
This commit is contained in:
@@ -218,6 +218,11 @@
|
||||
if(!isopenturf(loc) || !isopenturf(target.loc))
|
||||
return FALSE
|
||||
|
||||
// Check if the target to buckle isn't A SOLID OBJECT (not including vehicles)
|
||||
var/turf/ground = get_turf(src)
|
||||
if(ground.is_blocked_turf(exclude_mobs = TRUE, source_atom = src))
|
||||
return FALSE
|
||||
|
||||
// Check if this atom can have things buckled to it.
|
||||
if(!can_buckle && !force)
|
||||
return FALSE
|
||||
|
||||
Reference in New Issue
Block a user