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()