mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-21 03:56:47 +01:00
Add code to trace recursive buckle issue
Also prevents it in the meantime.
This commit is contained in:
@@ -54,6 +54,10 @@
|
||||
if(!can_buckle_check(M, forced))
|
||||
return FALSE
|
||||
|
||||
if(M == src)
|
||||
stack_trace("Recursive buckle warning: [M] being buckled to self.")
|
||||
return
|
||||
|
||||
M.buckled = src
|
||||
M.facing_dir = null
|
||||
M.set_dir(buckle_dir ? buckle_dir : dir)
|
||||
|
||||
Reference in New Issue
Block a user