From 5895fcb4b90ad27d938e8be56a5bb8431f2e524b Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 17 Jan 2017 01:46:38 +0100 Subject: [PATCH] More creative fixes --- mods/default/nodes.lua | 8 +------- mods/redstone/mesecons_commandblock/init.lua | 9 ++------- 2 files changed, 3 insertions(+), 14 deletions(-) diff --git a/mods/default/nodes.lua b/mods/default/nodes.lua index 7a025568b1..61679b193f 100644 --- a/mods/default/nodes.lua +++ b/mods/default/nodes.lua @@ -13,11 +13,8 @@ minetest.register_node("default:barrier", { stack_max = 64, sunlight_propagates = true, is_ground_content = false, - groups = { not_in_creative_inventory = 1 }, + groups = { not_in_creative_inventory = 1, oddly_breakable_by_hand = 5 }, on_blast = function() end, - on_destruct = function () end, - can_dig = function() return false end, - diggable = false, }) minetest.register_node("default:stone", { @@ -986,9 +983,6 @@ minetest.register_node("default:bedrock", { sounds = default.node_sound_stone_defaults(), is_ground_content = false, on_blast = function() end, - on_destruct = function () end, - can_dig = function() return false end, - diggable = false, drop = '', }) diff --git a/mods/redstone/mesecons_commandblock/init.lua b/mods/redstone/mesecons_commandblock/init.lua index 6e6a48a578..a6b76bdbb5 100644 --- a/mods/redstone/mesecons_commandblock/init.lua +++ b/mods/redstone/mesecons_commandblock/init.lua @@ -178,12 +178,10 @@ minetest.register_node("mesecons_commandblock:commandblock_off", { description = "Command Block", tiles = {"jeija_commandblock_off.png"}, inventory_image = minetest.inventorycube("jeija_commandblock_off.png"), - groups = {mesecon_effector_off=1, not_in_creative_inventory=1}, + groups = {mesecon_effector_off=1, not_in_creative_inventory=1, oddly_breakable_by_hand=5}, drop = "", diggable = false, - can_dig = function() return false end, on_blast = function() end, - on_destruct = function() end, on_construct = construct, is_ground_content = false, after_place_node = after_place, @@ -197,12 +195,9 @@ minetest.register_node("mesecons_commandblock:commandblock_off", { minetest.register_node("mesecons_commandblock:commandblock_on", { tiles = {"jeija_commandblock_on.png"}, - groups = {mesecon_effector_on=1, not_in_creative_inventory=1}, + groups = {mesecon_effector_on=1, not_in_creative_inventory=1, oddly_breakable_by_hand=5}, drop = "", - diggable = false, - can_dig = function() return false end, on_blast = function() end, - on_destruct = function() end, on_construct = construct, is_ground_content = false, after_place_node = after_place,