mirror of
https://github.com/Sokomine/cottages.git
synced 2024-09-26 14:30:35 +02:00
actually acknowledge anvil
This commit is contained in:
parent
fa2d38b32f
commit
64a286d9b0
1
init.lua
1
init.lua
|
@ -11,6 +11,7 @@ cottages = {
|
||||||
S = S,
|
S = S,
|
||||||
|
|
||||||
has = {
|
has = {
|
||||||
|
anvil = minetest.get_modpath("anvil"),
|
||||||
bucket = minetest.get_modpath("bucket"),
|
bucket = minetest.get_modpath("bucket"),
|
||||||
default = minetest.get_modpath("default"),
|
default = minetest.get_modpath("default"),
|
||||||
doors = minetest.get_modpath("doors"),
|
doors = minetest.get_modpath("doors"),
|
||||||
|
|
2
util.lua
2
util.lua
|
@ -32,8 +32,8 @@ function util.toggle_public(pos, sender)
|
||||||
local owner = meta:get_string("owner")
|
local owner = meta:get_string("owner")
|
||||||
|
|
||||||
if (owner == "" or owner == " ") and not minetest.is_protected(pos, sender_name) then
|
if (owner == "" or owner == " ") and not minetest.is_protected(pos, sender_name) then
|
||||||
meta:set_string("owner", sender_name)
|
|
||||||
owner = sender_name
|
owner = sender_name
|
||||||
|
meta:set_string("owner", sender_name)
|
||||||
end
|
end
|
||||||
|
|
||||||
if meta:get_string("public") == "public" then
|
if meta:get_string("public") == "public" then
|
||||||
|
|
Loading…
Reference in New Issue
Block a user