summaryrefslogtreecommitdiff
path: root/simple_streetlights/init.lua
diff options
context:
space:
mode:
authorVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2019-05-31 23:27:54 -0400
committerVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2019-05-31 23:27:54 -0400
commit2b45a7d33c487758a3ef53318dd779462b414495 (patch)
treeae1567bb71a7cb9d3d501d1d24c6da2194dd06df /simple_streetlights/init.lua
parentf8d4270e3ce0923360fcb7b3c41fb0d4291c9777 (diff)
downloaddreambuilder_modpack-2b45a7d33c487758a3ef53318dd779462b414495.tar
dreambuilder_modpack-2b45a7d33c487758a3ef53318dd779462b414495.tar.gz
dreambuilder_modpack-2b45a7d33c487758a3ef53318dd779462b414495.tar.bz2
dreambuilder_modpack-2b45a7d33c487758a3ef53318dd779462b414495.tar.xz
dreambuilder_modpack-2b45a7d33c487758a3ef53318dd779462b414495.zip
update simple_streetlights
Diffstat (limited to 'simple_streetlights/init.lua')
-rw-r--r--simple_streetlights/init.lua13
1 files changed, 11 insertions, 2 deletions
diff --git a/simple_streetlights/init.lua b/simple_streetlights/init.lua
index ac28424..63ae0ca 100644
--- a/simple_streetlights/init.lua
+++ b/simple_streetlights/init.lua
@@ -4,8 +4,17 @@ local modpath = minetest.get_modpath("simple_streetlights")
streetlights = {}
streetlights.basic_materials = minetest.get_modpath("basic_materials")
-streetlights.concrete = "basic_materials:concrete_block"
-streetlights.distributor = "streets:digiline_distributor"
+streetlights.concrete = "basic_materials:concrete_block"
+streetlights.distributor = "streets:digiline_distributor"
+streetlights.vert_digiline = "digistuff:vertical_bottom"
+
+function streetlights.rightclick_pointed_thing(pos, placer, itemstack, pointed_thing)
+ local node = minetest.get_node_or_nil(pos)
+ if not node then return false end
+ local def = minetest.registered_nodes[node.name]
+ if not def or not def.on_rightclick then return false end
+ return def.on_rightclick(pos, node, placer, itemstack, pointed_thing) or itemstack
+end
dofile(modpath.."/simple.lua")
if minetest.get_modpath("homedecor_lighting") and minetest.get_modpath("streetspoles") then