mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 03:02:54 +00:00
Merge pull request #9362 from ShadowLarkens/patch-1
Prevent cyclic neighbor references in spreading plants
This commit is contained in:
committed by
Chompstation Bot
parent
f86ac8eb30
commit
f92c8d9fc4
@@ -72,6 +72,7 @@
|
|||||||
var/obj/machinery/portable_atmospherics/hydroponics/soil/invisible/plant
|
var/obj/machinery/portable_atmospherics/hydroponics/soil/invisible/plant
|
||||||
|
|
||||||
/obj/effect/plant/Destroy()
|
/obj/effect/plant/Destroy()
|
||||||
|
neighbors.Cut()
|
||||||
if(seed.get_trait(TRAIT_SPREAD)==2)
|
if(seed.get_trait(TRAIT_SPREAD)==2)
|
||||||
unsense_proximity(callback = .HasProximity, center = get_turf(src))
|
unsense_proximity(callback = .HasProximity, center = get_turf(src))
|
||||||
SSplants.remove_plant(src)
|
SSplants.remove_plant(src)
|
||||||
|
|||||||
Reference in New Issue
Block a user