quotes x2
This commit is contained in:
parent
b7f6d7d4cf
commit
d399a1c48d
@ -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
|
||||
|
4
ball.lua
4
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))
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user