mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-21 12:32:23 +00:00
Fix #1161, Greenhouse Block rendering
This commit is contained in:
1 parent
9d9ea95ed1
commit
a15f110ca3
1 file changed
+3
-2
@@ -270,18 +270,19 @@ public abstract class BlockGreenhouse extends BlockStructure implements ISpriteR
|
||||
Block block = iblockstate.getBlock();
|
||||
|
||||
if (getGreenhouseType() == BlockGreenhouseType.GLASS) {
|
||||
if (blockAccess.getBlockState(pos.offset(side.getOpposite())) != iblockstate) {
|
||||
if (blockAccess.getBlockState(pos.offset(side)) != iblockstate) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (block == this) {
|
||||
return false;
|
||||
}
|
||||
return block != this && super.shouldSideBeRendered(blockState, blockAccess, pos, side);
|
||||
} else if (getGreenhouseType() == BlockGreenhouseType.DOOR) {
|
||||
return super.shouldSideBeRendered(blockState, blockAccess, pos, side);
|
||||
}
|
||||
|
||||
return block != this && super.shouldSideBeRendered(blockState, blockAccess, pos, side);
|
||||
return super.shouldSideBeRendered(blockState, blockAccess, pos, side);
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
|
||||
Reference in new issue
Block a user