diff --git a/README.md b/README.md index 1586e6a..a0ab478 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Get the latest version of Luanti: [downloads](https://www.luanti.org/downloads/) --- (c) 2015-2016 rnd\ textures by rnd, new textures by SaKeL (2016) and Jozet (2017)\ -Copyright (C) 2022-2024 мтест +Copyright (C) 2022-2025 мтест This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/ball.lua b/ball.lua index 12f9c24..013a9e5 100644 --- a/ball.lua +++ b/ball.lua @@ -1,6 +1,6 @@ -- Ball: energy ball that flies around, can bounce and activate stuff -- rnd 2016 --- Copyright (C) 2022-2023 мтест +-- Copyright (C) 2022-2025 мтест -- See README.md for license details -- TO DO, move mode: @@ -279,7 +279,7 @@ minetest.register_entity("basic_machines:ball", { elseif time_from_last_punch > 0.5 then if punchable == 1 then -- only those in protection local obj_pos = self.object:get_pos() - if minetest.is_protected(obj_pos) or + if minetest.is_protected(obj_pos, "") or puncher and minetest.is_protected(obj_pos, puncher:get_player_name()) then self.object:set_velocity(vector.multiply(dir, self._speed)) diff --git a/space.lua b/space.lua index 551f101..7091a0f 100644 --- a/space.lua +++ b/space.lua @@ -1,5 +1,5 @@ -- (c) 2015-2016 rnd --- Copyright (C) 2022-2024 мтест +-- Copyright (C) 2022-2025 мтест -- See README.md for license details local S = basic_machines.S @@ -149,7 +149,7 @@ minetest.register_globalstep(function(dtime) player:set_hp(hp - 10) -- dead in 20/10 = 2 events minetest.chat_send_player(name, S("WARNING: in space you must stay close to protected areas")) end - elseif not minetest.is_protected(pos, nil) then + elseif not minetest.is_protected(pos, "") then player:set_hp(hp - 10) -- dead in 20/10 = 2 events minetest.chat_send_player(name, S("WARNING: in space you must stay close to protected areas")) end