Fix incorrect numeric types for 5.3.0-dev

5.3.0-dev adds strict type checks for registration fields, hence this was not noticed earlier due to implicit string-number conversions
This commit is contained in:
Vanessa Dannenberg 2020-05-27 18:32:28 +02:00 committed by SmallJoker
parent df7f2e464a
commit befe3ecc86
2 changed files with 2 additions and 2 deletions

@ -16,7 +16,7 @@ local function inject_items (pos)
if stack then
local item0=stack:to_table()
if item0 then
item0["count"] = "1"
item0["count"] = 1
technic.tube_inject_item(pos, pos, vector.new(0, -1, 0), item0)
stack:take_item(1)
inv:set_stack("main", i, stack)

@ -74,7 +74,7 @@ function technic.send_items(pos, x_velocity, z_velocity, output_name)
if stack then
local item0 = stack:to_table()
if item0 then
item0["count"] = "1"
item0["count"] = 1
technic.tube_inject_item(pos, pos, vector.new(x_velocity, 0, z_velocity), item0)
stack:take_item(1)
inv:set_stack(output_name, i, stack)