PDA

View Full Version : XenoBot Bug - Non-Issue [Other] Xeno bug



eldera
01-13-2016, 05:48 PM
Bug Report
Operating System:
Other
Short Description:
Xeno bug
Behaviors:

Feature error

Indepth Description:
Container:UseItemWithGround(slot, x, y, z) returns number 0 or 1 instead of boolean

Input:

local container = Container.GetFirst()
local a = container:UseItemWithGround(1, Self.Position().x, Self.Position().y, Self.Position().z)
local b = container:UseItemWithGround(1, Self.Position().x, Self.Position().y, Self.Position().z + 1)

print("Value: " .. tostring(a) .. " [TYPE]: " .. type(a))
print("Value: " .. tostring(b) .. " [TYPE]: " .. type(b))

Output:


18:45 Value: 1 [TYPE]: number
18:45 Value: 0 [TYPE]: number

DarkstaR
01-13-2016, 08:40 PM
This isn't a bug.

eldera
01-15-2016, 11:54 AM
What is it then? Xenobot wikia says it should return boolean.