summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/Blocks/BlockDirt.h4
-rw-r--r--src/Blocks/BlockDoor.h5
-rw-r--r--src/Blocks/BlockTrapdoor.h1
3 files changed, 7 insertions, 3 deletions
diff --git a/src/Blocks/BlockDirt.h b/src/Blocks/BlockDirt.h
index b6d762dcf..19f889372 100644
--- a/src/Blocks/BlockDirt.h
+++ b/src/Blocks/BlockDirt.h
@@ -24,11 +24,11 @@ public:
if (a_BlockMeta == E_META_DIRT_COARSE)
{
// Drop the coarse block (dirt, meta 1)
- a_Pickups.Add(E_BLOCK_DIRT, 1, 1);
+ a_Pickups.Add(E_BLOCK_DIRT, 1, E_META_DIRT_COARSE);
}
else
{
- a_Pickups.Add(E_BLOCK_DIRT, 1, 0);
+ a_Pickups.Add(E_BLOCK_DIRT, 1, E_META_DIRT_NORMAL);
}
}
diff --git a/src/Blocks/BlockDoor.h b/src/Blocks/BlockDoor.h
index 7e46feec4..92ad8da12 100644
--- a/src/Blocks/BlockDoor.h
+++ b/src/Blocks/BlockDoor.h
@@ -185,8 +185,11 @@ public:
{
return true;
}
+ default:
+ {
+ return false;
+ }
}
- return false;
}
diff --git a/src/Blocks/BlockTrapdoor.h b/src/Blocks/BlockTrapdoor.h
index d3f3c9a38..8c96de0f1 100644
--- a/src/Blocks/BlockTrapdoor.h
+++ b/src/Blocks/BlockTrapdoor.h
@@ -31,6 +31,7 @@ public:
{
if (m_BlockType == E_BLOCK_IRON_TRAPDOOR)
{
+ // Iron doors can only be toggled by redstone, not by right-clicking
return;
}