Skip to content

Commit

Permalink
caused the server to crash
Browse files Browse the repository at this point in the history
  • Loading branch information
VinAdmin committed Sep 9, 2024
1 parent 7079fff commit b597ba4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion item_transport.lua
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ minetest.register_globalstep(function(dtime)
for _, entity in pairs(luaentity.entities) do
if entity.name == "pipeworks:tubed_item" then
local h = minetest.hash_node_position(vector.round(entity._pos))
tube_item_count[h] = (tube_item_count[h] or 0) + 1
if type(tube_item_count[h]) ~= 'nil' then
tube_item_count[h] = (tube_item_count[h] or 0) + 1
end
end
end
end)
Expand Down

0 comments on commit b597ba4

Please sign in to comment.