Fix silk-touching glowing redstone (#4893)
* Add src/BlocksRedstoneOre.h to CMakeLists.txt * Fixed silk touch pickaxe not dropping redstone ore (and dropping null item instead)
This commit is contained in:
parent
e2e78abdb7
commit
272a8029e0
@ -27,7 +27,12 @@ public:
|
|||||||
// If using silk-touch, drop self rather than the resource:
|
// If using silk-touch, drop self rather than the resource:
|
||||||
if (ToolHasSilkTouch(a_Tool))
|
if (ToolHasSilkTouch(a_Tool))
|
||||||
{
|
{
|
||||||
return cItem(m_BlockType);
|
switch (m_BlockType)
|
||||||
|
{
|
||||||
|
// If it was a glowing redstone ore, drop a normal redstone ore
|
||||||
|
case E_BLOCK_REDSTONE_ORE_GLOWING: return cItem(E_BLOCK_REDSTONE_ORE);
|
||||||
|
default: return cItem(m_BlockType);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Handle the Fortune enchantment here
|
// TODO: Handle the Fortune enchantment here
|
||||||
|
@ -72,6 +72,7 @@ target_sources(
|
|||||||
BlockRail.h
|
BlockRail.h
|
||||||
BlockRedstone.h
|
BlockRedstone.h
|
||||||
BlockRedstoneLamp.h
|
BlockRedstoneLamp.h
|
||||||
|
BlockRedstoneOre.h
|
||||||
BlockRedstoneRepeater.h
|
BlockRedstoneRepeater.h
|
||||||
BlockRedstoneTorch.h
|
BlockRedstoneTorch.h
|
||||||
BlockSand.h
|
BlockSand.h
|
||||||
|
Loading…
x
Reference in New Issue
Block a user