mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 19:47:22 +01:00
fix json spawned mobs immediately dying (#31560)
This commit is contained in:
@@ -78,6 +78,14 @@ in their list
|
||||
if(!path)
|
||||
throw EXCEPTION("Path not found: [path]")
|
||||
|
||||
var/atom/movable/thing = new path(loc)
|
||||
// Since Initialize() eats the first argument
|
||||
// we need to pass loc twice for organs, otherwise
|
||||
// they'll never attach to the mob. But if it's passed
|
||||
// for everything, it'll break shit cause it gets passed random args.
|
||||
var/atom/movable/thing
|
||||
if(ispath(path, /obj/item/organ))
|
||||
thing = new path(loc, loc)
|
||||
else
|
||||
thing = new path(loc)
|
||||
thing.deserialize(data)
|
||||
return thing
|
||||
|
||||
Reference in New Issue
Block a user