summaryrefslogtreecommitdiff
path: root/castle
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-02-17 23:14:21 -0500
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-02-17 23:14:21 -0500
commitdf5879ef7204340b1b4a5d97e3dd211f36d76293 (patch)
treea190e865741a1f6047b499a5947d91b500b1f0ae /castle
parentbc71eb952f8a699180bb7f4c22449a07bb29c91e (diff)
downloaddreambuilder_modpack-df5879ef7204340b1b4a5d97e3dd211f36d76293.tar
dreambuilder_modpack-df5879ef7204340b1b4a5d97e3dd211f36d76293.tar.gz
dreambuilder_modpack-df5879ef7204340b1b4a5d97e3dd211f36d76293.tar.bz2
dreambuilder_modpack-df5879ef7204340b1b4a5d97e3dd211f36d76293.tar.xz
dreambuilder_modpack-df5879ef7204340b1b4a5d97e3dd211f36d76293.zip
update castle, homedecor, ilights, and unified dyes
Diffstat (limited to 'castle')
-rw-r--r--castle/init.lua11
-rw-r--r--castle/tapestry.lua6
2 files changed, 3 insertions, 14 deletions
diff --git a/castle/init.lua b/castle/init.lua
index 11b239d..d57967e 100644
--- a/castle/init.lua
+++ b/castle/init.lua
@@ -1,16 +1,5 @@
castle = {}
--- use this when you have a "wallmounted" node that should never be oriented
--- to floor or ceiling (e.g. a tapestry)
-
-function castle.fix_rotation_nsew(pos, placer, itemstack, pointed_thing)
- local node = minetest.get_node(pos)
- local yaw = placer:get_look_yaw()
- local dir = minetest.yaw_to_dir(yaw)
- local fdir = minetest.dir_to_wallmounted(dir)
- minetest.swap_node(pos, { name = node.name, param2 = fdir })
-end
-
dofile(minetest.get_modpath("castle").."/pillars.lua")
dofile(minetest.get_modpath("castle").."/arrowslit.lua")
dofile(minetest.get_modpath("castle").."/tapestry.lua")
diff --git a/castle/tapestry.lua b/castle/tapestry.lua
index 59b94b4..75b372a 100644
--- a/castle/tapestry.lua
+++ b/castle/tapestry.lua
@@ -64,7 +64,7 @@ minetest.register_node("castle:tapestry", {
type = "wallmounted",
wall_side = {-0.5,-0.5,0.4375,0.5,1.5,0.5},
},
- after_place_node = castle.fix_rotation_nsew,
+ after_place_node = unifieddyes.fix_rotation_nsew,
after_dig_node = unifieddyes.after_dig_node
})
@@ -93,7 +93,7 @@ minetest.register_node("castle:tapestry_long", {
type = "wallmounted",
wall_side = {-0.5,-0.5,0.4375,0.5,2.5,0.5},
},
- after_place_node = castle.fix_rotation_nsew,
+ after_place_node = unifieddyes.fix_rotation_nsew,
after_dig_node = unifieddyes.after_dig_node
})
@@ -122,7 +122,7 @@ minetest.register_node("castle:tapestry_very_long", {
type = "wallmounted",
wall_side = {-0.5,-0.5,0.4375,0.5,3.5,0.5},
},
- after_place_node = castle.fix_rotation_nsew,
+ after_place_node = unifieddyes.fix_rotation_nsew,
after_dig_node = unifieddyes.after_dig_node
})