mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-20 12:09:39 +00:00
Fix fence rendering
This commit is contained in:
1 parent
6b5750f252
commit
db2d534d52
204 files changed
+497
-1567
No files matched your search
@@ -110,12 +110,15 @@ public abstract class BlockArbFence extends BlockFence implements IWoodTyped, II
|
||||
public boolean canConnectTo(IBlockAccess worldIn, BlockPos pos) {
|
||||
IBlockState blockState = worldIn.getBlockState(pos);
|
||||
Block block = blockState.getBlock();
|
||||
if (PluginArboriculture.validFences.contains(block) || block instanceof BlockFence || block instanceof BlockFenceGate) {
|
||||
if (PluginArboriculture.validFences.contains(block)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (block != Blocks.BARRIER) {
|
||||
Material blockMaterial = block.getMaterial(blockState);
|
||||
if (block instanceof BlockFence || block instanceof BlockFenceGate) {
|
||||
return blockMaterial == this.blockMaterial;
|
||||
}
|
||||
if (blockMaterial.isOpaque() && blockState.isFullCube() && blockMaterial != Material.GOURD) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user