From 64a286d9b0c775a898a6936c1f39f10a602717d2 Mon Sep 17 00:00:00 2001 From: flux <25628292+fluxionary@users.noreply.github.com> Date: Mon, 10 Oct 2022 15:09:31 -0700 Subject: [PATCH] actually acknowledge anvil --- init.lua | 1 + util.lua | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 3cca7c7..6824664 100644 --- a/init.lua +++ b/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"), diff --git a/util.lua b/util.lua index f994eb7..50838be 100644 --- a/util.lua +++ b/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