diff --git a/change.log b/change.log index 79402a3..d84548d 100644 --- a/change.log +++ b/change.log @@ -171,3 +171,7 @@ v0.1.27 v0.1.28 * Added support for lwwires. Wires will not connect to conduits. + + +v0.1.29 +* Fixed piston moving piston blanks. diff --git a/init.lua b/init.lua index 945d784..9dcc73d 100644 --- a/init.lua +++ b/init.lua @@ -1,4 +1,4 @@ -local version = "0.1.28" +local version = "0.1.29" local mod_storage = minetest.get_mod_storage () diff --git a/pistons.lua b/pistons.lua index 2b3869e..e937d46 100644 --- a/pistons.lua +++ b/pistons.lua @@ -150,6 +150,11 @@ local function add_pos_to_list (pos, dir, movedir, node_list, check_list) return 1 end + if node.name == "lwcomponents:piston_blank_1" or + node.name == "lwcomponents:piston_blank_2" then + return 0 + end + local meta = minetest.get_meta (pos) local timer = minetest.get_node_timer (pos) @@ -1083,14 +1088,14 @@ minetest.register_node("lwcomponents:piston_blank_2", { light_source = 0, sunlight_propagates = true, walkable = true, - pointable = false, - diggable = false, + pointable = true, + diggable = true, climbable = false, buildable_to = false, floodable = false, is_ground_content = false, drop = "", - groups = { not_in_creative_inventory = 1 }, + groups = { cracky = 3, not_in_creative_inventory = 1 }, -- unaffected by explosions on_blast = function() end, }) diff --git a/readme.txt b/readme.txt index 4ec19a2..3f071e3 100644 --- a/readme.txt +++ b/readme.txt @@ -13,7 +13,7 @@ CC BY-SA 3.0 Version ======= -0.1.28 +0.1.29 Minetest Version