From 5f9060dae3457b15f1ae6df96b0ed5b33d5ed35e Mon Sep 17 00:00:00 2001 From: Robert Jelic <36573031+NoryiE@users.noreply.github.com> Date: Wed, 6 Jul 2022 20:52:16 +0200 Subject: [PATCH] Update basaltPreview.lua --- examples/basaltPreview.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/basaltPreview.lua b/examples/basaltPreview.lua index cd5e5fc..040b7b6 100644 --- a/examples/basaltPreview.lua +++ b/examples/basaltPreview.lua @@ -3,7 +3,7 @@ local filePath = "basalt.lua" --here you can change the file path default: basal if not(fs.exists(filePath))then shell.run("pastebin run ESs1mg7P packed true "..filePath) -- this is an alternative to the wget command end -local basalt = require(filePath) -- here you can change the variablename in any variablename you want default: basalt +local basalt = require(filePath:gsub(".lua", "")) -- here you can change the variablename in any variablename you want default: basalt local w, h = term.getSize()