Skip to content

Commit

Permalink
Merge branch 'minor_fixes' of https://github.com/Panquesito7/technic
Browse files Browse the repository at this point in the history
  • Loading branch information
BuckarooBanzay committed Jun 18, 2020
2 parents c5d1353 + 8c5e74a commit c26eafe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ jobs:
- name: lint
uses: Roang-zero1/factorio-mod-luacheck@master
with:
luacheckrc_url: https://raw.githubusercontent.com/minetest-mods/technic/master/.luacheckrc
luacheckrc_url: ""
15 changes: 1 addition & 14 deletions technic/machines/MV/lighting.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,7 @@ end

function technic_homedecor_node_is_owned(pos, placer)
local ownername = false
if type(IsPlayerNodeOwner) == "function" then -- node_ownership mod
if HasOwner(pos, placer) then
if not IsPlayerNodeOwner(pos, placer:get_player_name()) then
if type(getLastOwner) == "function" then -- ...is an old version
ownername = getLastOwner(pos)
elseif type(GetNodeOwnerName) == "function" then -- ...is a recent version
ownername = GetNodeOwnerName(pos)
else
ownername = S("someone")
end
end
end

elseif type(isprotect) == "function" then -- glomie's protection mod
if type(isprotect) == "function" then -- glomie's protection mod
if not isprotect(5, pos, placer) then
ownername = S("someone")
end
Expand Down

0 comments on commit c26eafe

Please sign in to comment.