[MIRROR] Fixes stacking when crafting items (#2814)

* Merge pull request #30746 from YPOQ/stackfix

Fixes stacking when crafting items

* Fixes stacking when crafting items
This commit is contained in:
CitadelStationBot
2017-09-17 12:03:31 -05:00
committed by Poojawa
parent ada383e629
commit b09aa9d082
+3 -4
View File
@@ -149,7 +149,7 @@
if(!building_checks(R, multiplier))
return
var/atom/O = new R.result_type( usr.loc )
var/obj/O = new R.result_type()
O.setDir(usr.dir)
use(R.req_amount * multiplier)
@@ -168,11 +168,10 @@
new_item.amount = R.res_amount*multiplier
new_item.update_icon()
if(new_item.amount <= 0)//if the stack is empty, i.e it has been merged with an existing stack and has been garbage collected
return
if (isitem(O))
usr.put_in_hands(O)
else
O.forceMove(usr.drop_location())
O.add_fingerprint(usr)
//BubbleWrap - so newly formed boxes are empty