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
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