mirror of
https://github.com/APercy/ap_airship.git
synced 2025-03-15 07:51:20 +00:00
changed checxk ownership position
This commit is contained in:
parent
26000c4f21
commit
1414c13594
1 changed files with 3 additions and 3 deletions
|
@ -735,9 +735,6 @@ minetest.register_entity("ap_airship:airship", {
|
|||
local is_admin = false
|
||||
is_admin = minetest.check_player_privs(puncher, {server=true})
|
||||
local name = puncher:get_player_name()
|
||||
if self.owner and self.owner ~= name and self.owner ~= "" then
|
||||
if is_admin == false then return end
|
||||
end
|
||||
if self.owner == nil then
|
||||
self.owner = name
|
||||
end
|
||||
|
@ -757,6 +754,9 @@ minetest.register_entity("ap_airship:airship", {
|
|||
--refuel
|
||||
ap_airship.load_fuel(self, puncher)
|
||||
end
|
||||
if self.owner and self.owner ~= name and self.owner ~= "" then
|
||||
if is_admin == false then return end
|
||||
end
|
||||
|
||||
-- deal with painting or destroying
|
||||
if itmstck then
|
||||
|
|
Loading…
Add table
Reference in a new issue