From 1889b400a6965002c43a8ab73a801c498c1cfc56 Mon Sep 17 00:00:00 2001 From: RimiNosha <106692773+RimiNosha@users.noreply.github.com> Date: Sat, 19 Nov 2022 20:54:26 +0000 Subject: [PATCH] Fix TGUI Dev Server on 514! (#71374) ## About The Pull Request Makes the dev server actually work on 514 again by reverting a removal in reloader.js! #71161 didn't take into account that we still use 514 in their TGUI edits. Pain. ## Why It's Good For The Game TGUI dev server works again, this is a good thing, I think! ## Changelog Not player facing! --- tgui/packages/tgui-dev-server/reloader.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tgui/packages/tgui-dev-server/reloader.js b/tgui/packages/tgui-dev-server/reloader.js index 988088f731b..c13a8afdfcf 100644 --- a/tgui/packages/tgui-dev-server/reloader.js +++ b/tgui/packages/tgui-dev-server/reloader.js @@ -66,6 +66,8 @@ export const findCacheRoot = async () => { const onCacheRootFound = (cacheRoot) => { logger.log(`found cache at '${cacheRoot}'`); + // Plant a dummy browser window file, we'll be using this to avoid world topic. For byond 514. + fs.closeSync(fs.openSync(cacheRoot + '/dummy', 'w')); }; export const reloadByondCache = async (bundleDir) => { @@ -96,7 +98,7 @@ export const reloadByondCache = async (bundleDir) => { './*.+(bundle|chunk|hot-update).*' ); try { - // Plant a dummy browser window file, we'll be using this to avoid world topic + // Plant a dummy browser window file, we'll be using this to avoid world topic. For byond 515. fs.closeSync(fs.openSync(cacheDir + '/dummy', 'w')); for (let file of garbage) {