mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-22 20:43:10 +01:00
Portal Hard Del Fix (#22167)
Another small fix, but for a hard del that was "Player on demand harddelete". Each and every single time Telescience activated their portal machine, a hard delete occurred. Which is pretty silly considering the average science player- if they use the machine, will press it like 50 times in a round, and I know this because they'll make 50 hard dels lol. It was a pretty simple problem. Portals stored two references to the thing that made them, but weren't clearing them when destroyed.
This commit is contained in:
@@ -61,7 +61,10 @@
|
||||
if(istype(creator, /obj/item/hand_tele))
|
||||
var/obj/item/hand_tele/HT = creator
|
||||
HT.remove_portal(src)
|
||||
. = ..()
|
||||
|
||||
target = null
|
||||
creator = null
|
||||
return ..()
|
||||
|
||||
/obj/effect/portal/CollidedWith(atom/bumped_atom)
|
||||
. = ..()
|
||||
|
||||
Reference in New Issue
Block a user