actually acknowledge anvil

This commit is contained in:
flux 2022-10-10 15:09:31 -07:00
parent fa2d38b32f
commit 64a286d9b0
No known key found for this signature in database
GPG Key ID: 9333B27816848A15
2 changed files with 2 additions and 1 deletions

View File

@ -11,6 +11,7 @@ cottages = {
S = S,
has = {
anvil = minetest.get_modpath("anvil"),
bucket = minetest.get_modpath("bucket"),
default = minetest.get_modpath("default"),
doors = minetest.get_modpath("doors"),

View File

@ -32,8 +32,8 @@ function util.toggle_public(pos, sender)
local owner = meta:get_string("owner")
if (owner == "" or owner == " ") and not minetest.is_protected(pos, sender_name) then
meta:set_string("owner", sender_name)
owner = sender_name
meta:set_string("owner", sender_name)
end
if meta:get_string("public") == "public" then