Fix a custom item bug (#5008)

Turns out if the game can't equip or put the custom item into an inventory, it will just throw the item into space due to the order of where the equip_custom_items is, this should fix this problem.
This commit is contained in:
Alberyk
2018-07-19 00:18:38 +03:00
committed by Erki
parent 6acb8bff81
commit 34cdff0690
@@ -305,8 +305,6 @@ INITIALIZE_IMMEDIATE(/mob/abstract/new_player)
UpdateFactionList(character)
equip_custom_items(character)
// AIs don't need a spawnpoint, they must spawn at an empty core
if(character.mind.assigned_role == "AI")
@@ -328,6 +326,8 @@ INITIALIZE_IMMEDIATE(/mob/abstract/new_player)
//Find our spawning point.
var/join_message = SSjobs.LateSpawn(character, rank)
equip_custom_items(character)
character.lastarea = get_area(loc)
// Moving wheelchair if they have one
if(character.buckled && istype(character.buckled, /obj/structure/bed/chair/wheelchair))