Splitting stacks no longer sometimes makes the new stack full. (#9604)

This commit is contained in:
mikomyazaki
2020-08-04 01:45:10 +01:00
committed by GitHub
parent 3a561a22c1
commit 61d710e9d6
2 changed files with 7 additions and 1 deletions

View File

@@ -274,7 +274,7 @@
var/orig_amount = src.get_amount()
if (transfer && src.use(transfer))
var/obj/item/stack/newstack = new src.type(loc, transfer)
var/obj/item/stack/newstack = new src.stacktype(loc, transfer)
newstack.color = color
if (prob(transfer/orig_amount * 100))
transfer_fingerprints_to(newstack)