Trapdoor can be placed anywhere since 1.9
This commit is contained in:
parent
42cc736bfd
commit
dc4df66548
@ -106,18 +106,6 @@ public:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual bool CanBeAt(cChunkInterface & a_ChunkInterface, int a_RelX, int a_RelY, int a_RelZ, const cChunk & a_Chunk) override
|
|
||||||
{
|
|
||||||
NIBBLETYPE Meta;
|
|
||||||
a_Chunk.UnboundedRelGetBlockMeta(a_RelX, a_RelY, a_RelZ, Meta);
|
|
||||||
|
|
||||||
AddFaceDirection(a_RelX, a_RelY, a_RelZ, BlockMetaDataToBlockFace(Meta), true);
|
|
||||||
BLOCKTYPE BlockIsOn;
|
|
||||||
a_Chunk.UnboundedRelGetBlockType(a_RelX, a_RelY, a_RelZ, BlockIsOn);
|
|
||||||
|
|
||||||
return ((a_RelY > 0) && cBlockInfo::IsSolid(BlockIsOn));
|
|
||||||
}
|
|
||||||
|
|
||||||
virtual ColourID GetMapBaseColourID(NIBBLETYPE a_Meta) override
|
virtual ColourID GetMapBaseColourID(NIBBLETYPE a_Meta) override
|
||||||
{
|
{
|
||||||
UNUSED(a_Meta);
|
UNUSED(a_Meta);
|
||||||
|
Loading…
Reference in New Issue
Block a user