mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-15 00:53:23 +01:00
Fixes a table runtime (#19985)
* fixes table runtimes * ryan's suggestion
This commit is contained in:
@@ -27,7 +27,10 @@
|
||||
|
||||
///Try to make a table with the item used to attack. FALSE if you can't make a table and should attack. TRUE does not necessarily mean a table was made.
|
||||
/obj/structure/table_frame/proc/try_make_table(obj/item/stack/stack, mob/user)
|
||||
if(!stack?.table_type)
|
||||
if(!istype(stack))
|
||||
return FALSE
|
||||
|
||||
if(!stack.table_type)
|
||||
return FALSE
|
||||
|
||||
if(stack.get_amount() < 1)
|
||||
|
||||
Reference in New Issue
Block a user