Fix a bug for wireless and teleporter

This commit is contained in:
palige
2015-09-02 12:46:07 +02:00
parent b44d0d2fbc
commit 71ddb8be2a
3 changed files with 10 additions and 7 deletions

View File

@ -4,7 +4,7 @@ local wireless_rids = {}
local register = function(pos)
local RID = vector.get_data_from_pos(wireless_rids, pos.z,pos.y,pos.x)
if wireless[RID] == nil then
if not RID then
table.insert(wireless, pos)
vector.set_data_to_pos(wireless_rids, pos.z,pos.y,pos.x, #wireless)
end