You can no longer keep spawning hand labeler rolls out of thin air after removing its roll from a labeler once (#31426)

* Cleaned up hand labeler roll reference on roll removal

* hold up what am I smoking here

* oh god it's some really bad stuff
This commit is contained in:
DeityLink
2021-11-26 14:22:21 +01:00
committed by GitHub
parent e85a77501e
commit 572bc9c3ce

View File

@@ -95,7 +95,7 @@
icon_state = "labeler0"
/obj/item/weapon/hand_labeler/attack_hand(mob/user) //Shamelessly stolen from stack.dm.
if (!mode && user.get_inactive_hand() == src)
if (!mode && user.get_inactive_hand() == src && chars_left > 0)
var/obj/item/device/label_roll/LR = new(user, amount=chars_left)
user.put_in_hands(LR)
to_chat(user, "<span class='notice'>You remove the label roll.</span>")