protection bypass enabled

master
Alexsandro Percy 2022-01-10 17:36:24 -03:00
parent 50e64d7b74
commit 5be6ef8385
1 changed files with 1 additions and 1 deletions

View File

@ -373,7 +373,7 @@ minetest.register_entity("trike:trike", {
self.owner = name
end
if self.owner == name then
if self.owner == name or minetest.check_player_privs(clicker, {protection_bypass=true}) then
-- pilot section
local can_access = true
if trike.restricted == "true" then