Skip to content

Commit 6154a04

Browse files
authored
Remove node_ownership support, cleanup (#560)
1 parent 438c087 commit 6154a04

File tree

2 files changed

+2
-15
lines changed

2 files changed

+2
-15
lines changed

.github/workflows/check-release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ jobs:
88
- name: lint
99
uses: Roang-zero1/factorio-mod-luacheck@master
1010
with:
11-
luacheckrc_url: https://raw.githubusercontent.com/minetest-mods/technic/master/.luacheckrc
11+
luacheckrc_url: ""

technic/machines/MV/lighting.lua

+1-14
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,7 @@ end
1414

1515
function technic_homedecor_node_is_owned(pos, placer)
1616
local ownername = false
17-
if type(IsPlayerNodeOwner) == "function" then -- node_ownership mod
18-
if HasOwner(pos, placer) then
19-
if not IsPlayerNodeOwner(pos, placer:get_player_name()) then
20-
if type(getLastOwner) == "function" then -- ...is an old version
21-
ownername = getLastOwner(pos)
22-
elseif type(GetNodeOwnerName) == "function" then -- ...is a recent version
23-
ownername = GetNodeOwnerName(pos)
24-
else
25-
ownername = S("someone")
26-
end
27-
end
28-
end
29-
30-
elseif type(isprotect) == "function" then -- glomie's protection mod
17+
if type(isprotect) == "function" then -- glomie's protection mod
3118
if not isprotect(5, pos, placer) then
3219
ownername = S("someone")
3320
end

0 commit comments

Comments
 (0)