mirror of
https://notabug.org/TenPlus1/protector.git
synced 2024-12-05 03:23:47 +01:00
Changed: protection field texture change
This commit is contained in:
parent
60e46fa006
commit
3147245041
10
init.lua
10
init.lua
@ -215,7 +215,6 @@ minetest.register_node("protector:protect", {
|
||||
return
|
||||
end
|
||||
|
||||
local objs = minetest.env:get_objects_inside_radius(pos,.5)
|
||||
minetest.env:add_entity(pos, "protector:display")
|
||||
minetest.env:get_node_timer(pos):start(10)
|
||||
end,
|
||||
@ -291,7 +290,6 @@ minetest.register_node("protector:protect2", {
|
||||
return
|
||||
end
|
||||
|
||||
local objs = minetest.env:get_objects_inside_radius(pos,.5)
|
||||
minetest.env:add_entity(pos, "protector:display")
|
||||
minetest.env:get_node_timer(pos):start(10)
|
||||
end,
|
||||
@ -341,14 +339,6 @@ minetest.register_on_player_receive_fields(function(player,formname,fields)
|
||||
end
|
||||
end
|
||||
|
||||
if fields.protector_page_prev then
|
||||
meta:set_int("page",meta:get_int("page")-1)
|
||||
end
|
||||
|
||||
if fields.protector_page_next then
|
||||
meta:set_int("page",meta:get_int("page")+1)
|
||||
end
|
||||
|
||||
if fields.close_me then
|
||||
meta:set_int("page",meta:get_int("page"))
|
||||
else minetest.show_formspec(player:get_player_name(), formname, protector.generate_formspec(meta))
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 144 B After Width: | Height: | Size: 96 B |
Loading…
Reference in New Issue
Block a user