mirror of
https://github.com/Sokomine/cottages.git
synced 2025-07-03 00:20:24 +02:00
actually acknowledge anvil
This commit is contained in:
1
init.lua
1
init.lua
@ -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"),
|
||||
|
2
util.lua
2
util.lua
@ -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
|
||||
|
Reference in New Issue
Block a user