load vuln fixed, sudo fixed

This commit is contained in:
2026-02-23 22:43:12 -06:00
parent 6694711423
commit b015d5880a
6 changed files with 50 additions and 25 deletions

View File

@@ -37,7 +37,7 @@ function peripheral.isPresent(name)
end
function peripheral.getType(peripheral)
if type(peripheral) == "string" then -- Peripheral name passed
if type(peripheral) == "string" then
if native.isPresent(peripheral) then
return native.getType(peripheral)
end
@@ -58,7 +58,7 @@ function peripheral.getType(peripheral)
end
function peripheral.hasType(peripheral, peripheral_type)
if type(peripheral) == "string" then -- Peripheral name passed
if type(peripheral) == "string" then
if native.isPresent(peripheral) then
return native.hasType(peripheral, peripheral_type)
end