From b9fd59d9619186788e7d77d91ab91fd856a95123 Mon Sep 17 00:00:00 2001 From: Robert Jelic <36573031+NoryiE@users.noreply.github.com> Date: Wed, 6 Jul 2022 20:51:58 +0200 Subject: [PATCH] Update progressBarEnergyExample.lua --- examples/progressBarEnergyExample.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/progressBarEnergyExample.lua b/examples/progressBarEnergyExample.lua index aee5666..f1431aa 100644 --- a/examples/progressBarEnergyExample.lua +++ b/examples/progressBarEnergyExample.lua @@ -5,7 +5,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 energyCube = peripheral.find("ultimateEnergyCube")