Cleans up some reagentgrinder code

Removes a double check and fixes the circuit board description.
This commit is contained in:
TheSardele
2019-07-21 10:18:19 +02:00
parent 30f313cb93
commit a4485969db
2 changed files with 6 additions and 7 deletions
@@ -129,18 +129,17 @@
return
if (istype(I, /obj/item/reagent_containers) && (I.container_type & OPENCONTAINER) )
if (!beaker && !panel_open)
if(beaker)
to_chat(user, "<span class='warning'>There's already a container inside.</span>")
else if(panel_open)
to_chat(user, "<span class='warning'>Close the maintenance panel first.</span>")
else
if(!user.drop_item())
return 1
beaker = I
beaker.loc = src
update_icon()
src.updateUsrDialog()
else
if(!panel_open)
to_chat(user, "<span class='warning'>There's already a container inside.</span>")
else
to_chat(user, "<span class='warning'>Close the maintenance panel first.</span>")
return 1 //no afterattack
if(is_type_in_list(I, dried_items))