mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-24 08:02:57 +00:00
## About The Pull Request As detailed in #91431, PR #91379 misplaced a few semicolons and broke the functionality for these three admin tools. Only the object panel was fixed, but the mob and turf panels remain broken. This fixes it, the exact same issue was/is the problem. ## Why It's Good For The Game Restores admin functionality that is currently missing. ## Changelog 🆑 fix: create mob and create turf both function correctly again. /🆑
11 lines
483 B
Plaintext
11 lines
483 B
Plaintext
/datum/admins/proc/create_turf(mob/user)
|
|
var/static/create_turf_html
|
|
if (!create_turf_html)
|
|
var/turfjs = null
|
|
turfjs = jointext(typesof(/turf), ";")
|
|
create_turf_html = file2text('html/create_object.html')
|
|
create_turf_html = replacetext(create_turf_html, "Create Object", "Create Turf")
|
|
create_turf_html = replacetext(create_turf_html, "null; /* object types */", "\"[turfjs]\";")
|
|
|
|
user << browse(create_panel_helper(create_turf_html), "window=create_turf;size=425x475")
|