Code improvements
This commit is contained in:
parent
425df6b694
commit
7d3016c7ad
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -185,9 +185,12 @@ public:
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
default:
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static NIBBLETYPE IsOpen(cChunkInterface & a_ChunkInterface, int a_BlockX, int a_BlockY, int a_BlockZ)
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user