v1.10.0 - Improved the component library to add things like component.gpu.

This commit is contained in:
TheWahlolly
2025-06-15 18:30:48 +03:00
parent e4cf929fce
commit 9b4c76b71d
10 changed files with 50 additions and 40 deletions
+9
View File
@@ -84,4 +84,13 @@ function compLib.get(address)
return nil, "full address not found"
end
-- Add main component proxies to the library
setmetatable(compLib, {["__index"] = function(_, item)
if compLib.list(item)() then
return compLib.proxy(compLib.list(item)())
else
return compLib[item]
end
end})
return compLib
+1 -1
View File
@@ -10,7 +10,7 @@ local raster = {
local component = import("component")
-- local ocelot = component.proxy(component.list("ocelot")())
local gpu = component.proxy(component.list("gpu")())
local gpu = component.gpu
local display = {}
local chunksAffected = {}