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,8 +185,11 @@ public:
|
||||
{
|
||||
return true;
|
||||
}
|
||||
default:
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
@ -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