Skip to content

Commit

Permalink
Runtime error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
savethetreez committed Apr 13, 2024
1 parent 7f6a4e7 commit b3c0018
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/modules/reagents/reagent_containers/glass.dm
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,8 @@ var/list/not_resolved_in_attackby_objects = list(/obj/structure/chemical_dispens
overlays += lid
else
var/image/filling = image(icon, src, "[icon_state]85")
if (!reagents)
return
var/percent = round((reagents.total_volume / volume) * 100)
switch(percent)
if (0 to 85) filling.icon_state = "[icon_state]-85"
Expand Down

0 comments on commit b3c0018

Please sign in to comment.