mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-29 15:08:34 +01:00
Fix datum components (#15788)
This commit is contained in:
@@ -297,12 +297,12 @@
|
||||
*/
|
||||
/datum/component/proc/_GetInverseTypeList(our_type = type)
|
||||
//we can do this one simple trick
|
||||
. = list(our_type)
|
||||
var/current_type = parent_type
|
||||
. = list(our_type, current_type)
|
||||
//and since most components are root level + 1, this won't even have to run
|
||||
while (current_type != /datum/component)
|
||||
current_type = type2parent(current_type)
|
||||
. += current_type
|
||||
current_type = type2parent(current_type)
|
||||
|
||||
/**
|
||||
* Internal proc to handle most all of the signaling procedure
|
||||
|
||||
Reference in New Issue
Block a user