mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-01-05 23:13:06 +00:00
Fix for non-cancelable book removal from bookshelves
This commit is contained in:
@@ -41,7 +41,7 @@
|
|||||||
|
|
||||||
/obj/structure/bookcase/attack_hand(var/mob/user as mob)
|
/obj/structure/bookcase/attack_hand(var/mob/user as mob)
|
||||||
if(contents.len)
|
if(contents.len)
|
||||||
var/obj/item/weapon/book/choice = input("Which book would you like to remove from the shelf?") in contents as obj|null
|
var/obj/item/weapon/book/choice = input("Which book would you like to remove from the shelf?") as null|obj in contents
|
||||||
if(choice)
|
if(choice)
|
||||||
if(!usr.canmove || usr.stat || usr.restrained() || !in_range(loc, usr))
|
if(!usr.canmove || usr.stat || usr.restrained() || !in_range(loc, usr))
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user