From 2bc7406c9a2112eba39e91c304dab74699093c4d Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Wed, 24 Jun 2015 10:00:12 +0100 Subject: Adjusted ground content flags --- crystal.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crystal.lua') diff --git a/crystal.lua b/crystal.lua index d7ad9b8..bf3bc9f 100644 --- a/crystal.lua +++ b/crystal.lua @@ -37,6 +37,7 @@ minetest.register_node("ethereal:crystal_block", { description = "Crystal Block", tiles = {"crystal_block.png"}, light_source = default.LIGHT_MAX - 5, + is_ground_content = false, groups = {cracky=1,level=2,puts_out_fire=1}, sounds = default.node_sound_glass_defaults(), }) @@ -134,7 +135,7 @@ minetest.register_tool("ethereal:shovel_crystal", { on_use = function(itemstack, user, pointed_thing) - if pointed_thing.type == "node" then + if pointed_thing.type ~= "node" then return end -- Check if node protected if not minetest.is_protected(pointed_thing.under, user:get_player_name()) then @@ -158,7 +159,6 @@ minetest.register_tool("ethereal:shovel_crystal", { end end - end end, }) -- cgit v1.2.3