summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rw-r--r--init.lua2
2 files changed, 4 insertions, 0 deletions
diff --git a/README.md b/README.md
index b244b58..21566cd 100644
--- a/README.md
+++ b/README.md
@@ -4,4 +4,6 @@ minetest-protect
Protector mod for minetest
based on glomie's mod, remade by Zeg9 and reworked by TenPlus1 to support minetest 0.4.9 and include protected doors and chests
+https://forum.minetest.net/viewtopic.php?f=11&t=9376
+
Released under WTFPL \ No newline at end of file
diff --git a/init.lua b/init.lua
index 36d799c..4e32d5f 100644
--- a/init.lua
+++ b/init.lua
@@ -184,6 +184,7 @@ minetest.register_node("protector:protect", {
},
selection_box = { type="regular" },
paramtype = "light",
+ light_source = 2,
after_place_node = function(pos, placer)
local meta = minetest.env:get_meta(pos)
@@ -249,6 +250,7 @@ minetest.register_node("protector:protect2", {
groups = {dig_immediate=2},
paramtype = 'light',
paramtype2 = "wallmounted",
+ light_source = 2,
drawtype = "nodebox",
sunlight_propagates = true,
walkable = true,