mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-23 20:09:46 +03:00
* Initial commit.
:)
This commit is contained in:
19
source/World/Tile/HalfTransparentTile.cpp
Normal file
19
source/World/Tile/HalfTransparentTile.cpp
Normal file
@@ -0,0 +1,19 @@
|
||||
#include "Tile.hpp"
|
||||
#include "Level.hpp"
|
||||
|
||||
HalfTransparentTile::HalfTransparentTile(int a, int b, Material* c) : Tile(a, b, c)
|
||||
{
|
||||
}
|
||||
|
||||
bool HalfTransparentTile::isSolidRender()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
bool HalfTransparentTile::shouldRenderFace(LevelSource* level, int x, int y, int z, int dir)
|
||||
{
|
||||
if (field_6C || level->getTile(x, y, z) != m_ID)
|
||||
return Tile::shouldRenderFace(level, x, y, z, dir);
|
||||
|
||||
return field_6C;
|
||||
}
|
||||
Reference in New Issue
Block a user