mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-17 10:03:50 +01:00
Fixed a runtime error related to the group_multiplier of an air mixture being 0
In certain cases, zones would be emptied completely of turfs, thereby causing division by zero errors in FEA due to operations involving group_multiplier.
This commit is contained in:
@@ -353,6 +353,10 @@ obj/item/weapon/mop/proc/clean(turf/simulated/A as turf)
|
||||
..()
|
||||
|
||||
/obj/item/weapon/mop/afterattack(atom/A, mob/user as mob)
|
||||
if (isnull(A))
|
||||
user << "\red You've encountered a nasty bug. You should tell a developer what you were trying to clean with the mop."
|
||||
return
|
||||
|
||||
if (src.reagents.total_volume < 1 || mopcount >= 5)
|
||||
user << "\blue Your mop is dry!"
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user