Fixed an annoying bug with giving another player a flashlight,

opened up at least 100 individual bugs where people kept setting
loc and expecting light updates to catch it.
This commit is contained in:
Aryn
2014-03-18 21:57:15 -06:00
parent 7e08bca4ef
commit 9007aedf15
10 changed files with 101 additions and 106 deletions

View File

@@ -717,8 +717,11 @@ It can still be worn/put on as normal.
if(item && target.has_organ_for_slot(slot_to_process)) //Placing an item on the mob
if(item.mob_can_equip(target, slot_to_process, 0))
source.u_equip(item)
target.equip_to_slot_if_possible(item, slot_to_process, 0, 1, 1)
item.dropped(source)
target.equip_to_slot_if_possible(item, slot_to_process, 0, 1, 1)
item.pickup(target)
source.update_icons()
target.update_icons()