mirror of
https://notabug.org/TenPlus1/protector.git
synced 2025-01-08 11:57:28 +01:00
Fixed multiple chat when protector used to find others in area
This commit is contained in:
parent
c409f445d6
commit
d3625e3270
@ -1,2 +1,3 @@
|
|||||||
default
|
default
|
||||||
doors
|
doors
|
||||||
|
mobs?
|
4
init.lua
4
init.lua
@ -143,6 +143,7 @@ protector.can_dig = function(r, pos, digger, onlyowner, infolevel)
|
|||||||
minetest.chat_send_player(digger,
|
minetest.chat_send_player(digger,
|
||||||
"Members: " .. members .. ".")
|
"Members: " .. members .. ".")
|
||||||
end
|
end
|
||||||
|
break
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
@ -354,6 +355,9 @@ minetest.register_entity("protector:display", {
|
|||||||
-- wielditem seems to be scaled to 1.5 times original node size
|
-- wielditem seems to be scaled to 1.5 times original node size
|
||||||
visual_size = {x = 1.0 / 1.5, y = 1.0 / 1.5},
|
visual_size = {x = 1.0 / 1.5, y = 1.0 / 1.5},
|
||||||
textures = {"protector:display_node"},
|
textures = {"protector:display_node"},
|
||||||
|
on_activate = function(self, staticdata)
|
||||||
|
if mobs and mobs.entity == false then self.object:remove() end
|
||||||
|
end,
|
||||||
on_step = function(self, dtime)
|
on_step = function(self, dtime)
|
||||||
self.timer = (self.timer or 0) + dtime
|
self.timer = (self.timer or 0) + dtime
|
||||||
if self.timer > 10 then
|
if self.timer > 10 then
|
||||||
|
Loading…
Reference in New Issue
Block a user