mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-10 09:42:29 +00:00
[MIRROR] Fixes spammy monkey runtime. [MDB IGNORE] (#11854)
* Fixes spammy monkey runtime. (#65232) * Fixes spammy monkey runtime. Co-authored-by: AnturK <AnturK@users.noreply.github.com>
This commit is contained in:
@@ -87,7 +87,10 @@
|
||||
/datum/ai_behavior/use_on_object/setup(datum/ai_controller/controller, target_key)
|
||||
. = ..()
|
||||
var/datum/weakref/target_ref = controller.blackboard[target_key]
|
||||
controller.current_movement_target = target_ref?.resolve()
|
||||
var/target = target_ref?.resolve()
|
||||
if(!target)
|
||||
return FALSE
|
||||
controller.current_movement_target = target
|
||||
|
||||
/datum/ai_behavior/use_on_object/perform(delta_time, datum/ai_controller/controller, target_key)
|
||||
. = ..()
|
||||
|
||||
Reference in New Issue
Block a user