mirror of
https://github.com/Sokomine/cottages.git
synced 2025-05-11 04:50:25 +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,
|
||||
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user