Skip to content

Commit

Permalink
fix: disable resource pack caching when not on dev
Browse files Browse the repository at this point in the history
  • Loading branch information
metalcupcake5 committed Jan 5, 2024
1 parent d9f0c2f commit 23f733f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/custom-resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import { getFileHash } from "./hashes.js";
const execFile = util.promisify(child_process.execFile);

const NORMALIZED_SIZE = 128;
const RESOURCE_CACHING = true;
const RESOURCE_CACHING = process.env.NODE_ENV == "development" ? true : false;

const FOLDER_PATH = getFolderPath();
const RESOURCE_PACK_FOLDER = path.resolve(getFolderPath(), "..", "public", "resourcepacks");
Expand Down

0 comments on commit 23f733f

Please sign in to comment.