AdvancedPeripherals icon indicating copy to clipboard operation
AdvancedPeripherals copied to clipboard

inventory Manager inconsistent with documentation

Open Merith-TK opened this issue 2 years ago • 0 comments

Descripe

image this happens when there is no linked memory card inserted,

the code this is gonna run with

print("[ultron-hud] Detecting Player Name")
local playername = inv.getOwner()
if not playername then
	print("[ultron-hud] Player Name not found")
	print("[ultron-hud] Please insert a Linked Memory Card")
	while not playername do
		playername = inv.getOwner()
	end
end
print("[ultron-hud] Player Name: "..playername)

the documentation states that it should return nil rather than throwing an error

Steps to reproduce

call any inventory function without an memory card\

also we somehow have advanced peripherals 0.7.15b?? which is not in the version drop down

Multiplayer?

Yes

Version

1.18.2-0.7.14b (Latest 1.18)

Minecraft, Forge and maybe other related mods versions

MC 1.18.2, FORGE 40.1.31

Screenshots or Videos

No response

Crashlog/log

No response

Merith-TK avatar Jun 14 '22 04:06 Merith-TK