mirror of
https://github.com/GabsPuNs/Project-Zenith-Main.git
synced 2026-06-14 14:02:00 +00:00
TU24
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
#include "net.minecraft.world.level.h"
|
||||
#include "net.minecraft.world.h"
|
||||
#include "FenceTile.h"
|
||||
#include "FenceGateTile.h"
|
||||
|
||||
FenceTile::FenceTile(int id, const wstring &texture, Material *material) : Tile( id, material, isSolidRender())
|
||||
{
|
||||
@@ -118,7 +117,7 @@ int FenceTile::getRenderShape()
|
||||
bool FenceTile::connectsTo(LevelSource *level, int x, int y, int z)
|
||||
{
|
||||
int tile = level->getTile(x, y, z);
|
||||
if (isFence(tile) || FenceGateTile::isFenceGate(tile))
|
||||
if (tile == id || tile == Tile::fenceGate_Id)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@@ -135,7 +134,7 @@ bool FenceTile::connectsTo(LevelSource *level, int x, int y, int z)
|
||||
|
||||
bool FenceTile::isFence(int tile)
|
||||
{
|
||||
return (tile == Tile::fence_Id || tile == Tile::netherFence_Id) || (tile >= Tile::spruce_fence_Id && tile <= Tile::dark_oak_fence_Id);
|
||||
return tile == Tile::fence_Id || tile == Tile::netherFence_Id;
|
||||
}
|
||||
|
||||
void FenceTile::registerIcons(IconRegister *iconRegister)
|
||||
|
||||
Reference in New Issue
Block a user