Update cables.lua

This commit is contained in:
12Me21 2018-09-17 14:42:38 -04:00 committed by GitHub
parent bb16fc5fe6
commit 66908c0ff9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -206,7 +206,7 @@ function technic.register_cable(tier, size)
local name = placer:get_player_name()
if minetest.is_protected(pointed_thing.above, name) then
minetest.record_protection_violation(pos, name)
return true
return
end
local node = minetest.get_node_or_nil(pointed_thing.above)
if node then