summaryrefslogtreecommitdiff
path: root/crystal.lua
diff options
context:
space:
mode:
authortenplus1 <kinsellaja@yahoo.com>2015-06-24 10:00:12 +0100
committertenplus1 <kinsellaja@yahoo.com>2015-06-24 10:00:12 +0100
commit2bc7406c9a2112eba39e91c304dab74699093c4d (patch)
tree10620b71f6bdb65c46832da0743faf7be3500989 /crystal.lua
parentd22a051434d1b92d8fbb4fa8027ef29a567312eb (diff)
Adjusted ground content flags
Diffstat (limited to 'crystal.lua')
-rw-r--r--crystal.lua4
1 files changed, 2 insertions, 2 deletions
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,
})