mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-23 21:39:40 +00:00
Fix weird blending issue with Dynamic Glass, gave Seismic Vibrator an on texture
This commit is contained in:
1 parent
99c1f44db5
commit
cf1469c7da
6 files changed
+38
-22
No files matched your search
@@ -23,10 +23,10 @@ public class ConnectedTextureRenderer
|
||||
|
||||
public Map<Integer, IIcon> glassMap = new HashMap<Integer, IIcon>();
|
||||
|
||||
public ConnectedTextureRenderer(String title, Block block, int meta)
|
||||
public ConnectedTextureRenderer(String title, Block b, int meta)
|
||||
{
|
||||
iconTitle = title;
|
||||
this.block = block;
|
||||
block = b;
|
||||
metadata = meta;
|
||||
}
|
||||
|
||||
@@ -111,10 +111,10 @@ public class ConnectedTextureRenderer
|
||||
|
||||
private boolean canConnect(IBlockAccess access, Coord4D obj, int side, int face)
|
||||
{
|
||||
Coord4D block = obj.getFromSide(ForgeDirection.getOrientation(side));
|
||||
Coord4D blockabove = obj.getFromSide(ForgeDirection.getOrientation(face));
|
||||
Coord4D coord = obj.getFromSide(ForgeDirection.getOrientation(side));
|
||||
Coord4D coordAbove = obj.getFromSide(ForgeDirection.getOrientation(face));
|
||||
|
||||
return (block.getBlock(access) == this.block && block.getMetadata(access) == metadata) && (blockabove.getBlock(access) != this.block || blockabove.getMetadata(access) != metadata);
|
||||
return (coord.getBlock(access) == block && coord.getMetadata(access) == metadata) && (coordAbove.getBlock(access) != block || coordAbove.getMetadata(access) != metadata);
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
|
||||
Reference in new issue
Block a user