fixes the admin message when a circuit with admin_only = 0 gets executed (#60921) (#7659)

Co-authored-by: manofpepsi <71612753+manofpepsi@users.noreply.github.com>
This commit is contained in:
SkyratBot
2021-08-20 12:41:39 +02:00
committed by GitHub
parent e3ed7cd7a1
commit 6c58cc757e

View File

@@ -191,7 +191,7 @@
if(!parent.admin_only)
if(circuit_flags & CIRCUIT_FLAG_ADMIN)
message_admins("[display_name] tried to execute on [parent.get_creator_admin()] that has set the admin_only variable to TRUE!")
message_admins("[display_name] tried to execute on [parent.get_creator_admin()] that has admin_only set to 0")
return TRUE
var/obj/item/stock_parts/cell/cell = parent.get_cell()