fixes freeform boards being incredibly janky (#27208)

This commit is contained in:
Qwertytoforty
2024-10-27 01:20:49 +00:00
committed by GitHub
parent 253b7f120e
commit 33f8c759ba
@@ -216,7 +216,7 @@ AI MODULES
/obj/item/aiModule/freeform/attack_self(mob/user as mob)
..()
var/new_lawpos = tgui_input_number(user, "Please enter the priority for your new law. Can only write to law sectors 15 and above.", "Law Priority", lawpos, MAX_SUPPLIED_LAW_NUMBER, MIN_SUPPLIED_LAW_NUMBER)
if(isnull(new_lawpos) || new_lawpos == lawpos)
if(isnull(new_lawpos))
return
lawpos = new_lawpos