From 8d66e5070905e3239b6005e7b86bc918b8cc31e2 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 11 Feb 2017 04:37:14 +0100 Subject: [PATCH] Use mcl_util.rotate_axis everywhere --- mods/mcl_core/depends.txt | 1 + mods/mcl_core/nodes.lua | 16 ++++++++-------- mods/mcl_nether/depends.txt | 1 + mods/mcl_nether/init.lua | 2 +- 4 files changed, 11 insertions(+), 9 deletions(-) create mode 100644 mods/mcl_core/depends.txt diff --git a/mods/mcl_core/depends.txt b/mods/mcl_core/depends.txt new file mode 100644 index 00000000..a501f11d --- /dev/null +++ b/mods/mcl_core/depends.txt @@ -0,0 +1 @@ +mcl_util diff --git a/mods/mcl_core/nodes.lua b/mods/mcl_core/nodes.lua index f8899dee..8e7cc7c5 100644 --- a/mods/mcl_core/nodes.lua +++ b/mods/mcl_core/nodes.lua @@ -448,7 +448,7 @@ minetest.register_node("mcl_core:haybale", { stack_max = 64, paramtype2 = "facedir", is_ground_content = false, - on_place = minetest.rotate_node, + on_place = mcl_util.rotate_axis, groups = {oddly_breakable_by_hand=3,flammable=2, building_block=1}, sounds = mcl_core.node_sound_leaves_defaults(), }) @@ -458,7 +458,7 @@ minetest.register_node("mcl_core:bone_block", { tiles = {"mcl_core_bone_block_top.png", "mcl_core_bone_block_top.png", "mcl_core_bone_block_side.png"}, is_ground_content = false, paramtype2 = "facedir", - on_place = minetest.rotate_node, + on_place = mcl_util.rotate_axis, groups = {cracky=2, building_block=1}, sounds = mcl_core.node_sound_stone_defaults(), }) @@ -517,7 +517,7 @@ minetest.register_node("mcl_core:tree", { description = "Oak Wood", tiles = {"default_tree_top.png", "default_tree_top.png", "default_tree.png"}, paramtype2 = "facedir", - on_place = minetest.rotate_node, + on_place = mcl_util.rotate_axis, stack_max = 64, groups = {tree=1,choppy=2,oddly_breakable_by_hand=1,flammable=2, building_block=1}, sounds = mcl_core.node_sound_wood_defaults(), @@ -572,7 +572,7 @@ minetest.register_node("mcl_core:darktree", { description = "Dark Oak Wood", tiles = {"default_log_big_oak_top.png", "default_log_big_oak_top.png", "default_log_big_oak.png"}, paramtype2 = "facedir", - on_place = minetest.rotate_node, + on_place = mcl_util.rotate_axis, stack_max = 64, groups = {tree=1,choppy=2,oddly_breakable_by_hand=1,flammable=2,building_block=1}, sounds = mcl_core.node_sound_wood_defaults(), @@ -629,7 +629,7 @@ minetest.register_node("mcl_core:jungletree", { tiles = {"default_jungletree_top.png", "default_jungletree_top.png", "default_jungletree.png"}, stack_max = 64, paramtype2 = "facedir", - on_place = minetest.rotate_node, + on_place = mcl_util.rotate_axis, groups = {tree=1,choppy=2,oddly_breakable_by_hand=1,flammable=2,building_block=1}, sounds = mcl_core.node_sound_wood_defaults(), }) @@ -689,7 +689,7 @@ minetest.register_node("mcl_core:acaciatree", { tiles = {"default_acaciatree_top.png", "default_acaciatree_top.png", "default_acaciatree.png"}, stack_max = 64, paramtype2 = "facedir", - on_place = minetest.rotate_node, + on_place = mcl_util.rotate_axis, groups = {tree=1,choppy=2,oddly_breakable_by_hand=1,flammable=2,building_block=1}, sounds = mcl_core.node_sound_wood_defaults(), }) @@ -748,7 +748,7 @@ minetest.register_node("mcl_core:sprucetree", { tiles = {"default_sprucetree_top.png", "default_sprucetree_top.png", "default_sprucetree.png"}, stack_max = 64, paramtype2 = "facedir", - on_place = minetest.rotate_node, + on_place = mcl_util.rotate_axis, groups = {tree=1,choppy=2,oddly_breakable_by_hand=1,flammable=2,building_block=1}, sounds = mcl_core.node_sound_wood_defaults(), }) @@ -811,7 +811,7 @@ minetest.register_node("mcl_core:birchtree", { tiles = {"default_log_birch_top.png", "default_log_birch_top.png", "default_log_birch.png"}, stack_max = 64, paramtype2 = "facedir", - on_place = minetest.rotate_node, + on_place = mcl_util.rotate_axis, groups = {tree=1,choppy=2,oddly_breakable_by_hand=1,flammable=2,building_block=1}, sounds = mcl_core.node_sound_wood_defaults(), }) diff --git a/mods/mcl_nether/depends.txt b/mods/mcl_nether/depends.txt index 3561a34c..9c189b07 100644 --- a/mods/mcl_nether/depends.txt +++ b/mods/mcl_nether/depends.txt @@ -1,2 +1,3 @@ mcl_core +mcl_util walkover diff --git a/mods/mcl_nether/init.lua b/mods/mcl_nether/init.lua index d8de2ee8..f405a61e 100644 --- a/mods/mcl_nether/init.lua +++ b/mods/mcl_nether/init.lua @@ -124,7 +124,7 @@ minetest.register_node("mcl_nether:quartz_pillar", { stack_max = 64, paramtype2 = "facedir", is_ground_content = false, - on_place = minetest.rotate_node, + on_place = mcl_util.rotate_axis, tiles = {"mcl_nether_quartz_pillar_top.png", "mcl_nether_quartz_pillar_top.png", "mcl_nether_quartz_pillar_side.png"}, groups = {cracky=3,quartz_block=1,building_block=1}, sounds = mcl_core.node_sound_stone_defaults(),