This commit is contained in:
GabsPuNs
2026-05-14 21:52:21 -04:00
parent 1b2f5c6fe8
commit f8a2d644f5
291 changed files with 7363 additions and 18368 deletions

View File

@@ -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)