[MIRROR] Fixes monkeys being unable to disposal people [MDB IGNORE] (#13054)

* Fixes monkey disposalling (#66435)

- Disposal target was changed to a weakref, but this read was not changed to resolve from a weakref, mistakenly

* Fixes monkeys being unable to disposal people

Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com>
This commit is contained in:
SkyratBot
2022-04-24 14:02:28 +01:00
committed by GitHub
co-authored by MrMelbert
parent f919b9ef23
commit 236599a28d
+2 -1
View File
@@ -277,7 +277,8 @@
var/mob/living/living_pawn = controller.pawn
var/datum/weakref/target_ref = controller.blackboard[attack_target_key]
var/mob/living/target = target_ref?.resolve()
var/obj/machinery/disposal/disposal = controller.blackboard[disposal_target_key]
var/datum/weakref/disposal_ref = controller.blackboard[disposal_target_key]
var/obj/machinery/disposal/disposal = disposal_ref?.resolve()
controller.blackboard[BB_MONKEY_DISPOSING] = TRUE