mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-27 23:33:08 +00:00
Of course, the issue isn't on Minecraft's end, it has to do with Coord4D hashing. Coord4D no longer extends BlockPos to prevent hash issues
This commit is contained in:
1 parent
c6f3c162f9
commit
ddfe83c495
70 files changed
+458
-1032
No files matched your search
@@ -36,7 +36,7 @@ public class RenderBin extends TileEntitySpecialRenderer<TileEntityBin>
|
||||
|
||||
Coord4D obj = Coord4D.get(tileEntity).offset(tileEntity.facing);
|
||||
|
||||
if(tileEntity.getWorld().getBlockState(obj).getBlock().isSideSolid(tileEntity.getWorld(), obj, tileEntity.facing.getOpposite()))
|
||||
if(obj.getBlockState(tileEntity.getWorld()).getBlock().isSideSolid(tileEntity.getWorld(), obj.getPos(), tileEntity.facing.getOpposite()))
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -91,12 +91,12 @@ public class RenderBin extends TileEntitySpecialRenderer<TileEntityBin>
|
||||
|
||||
private void doLight(World world, Coord4D obj)
|
||||
{
|
||||
if(world.getBlockState(obj).getBlock().isOpaqueCube())
|
||||
if(obj.getBlockState(world).getBlock().isOpaqueCube())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
int brightness = world.getLightFromNeighborsFor(EnumSkyBlock.SKY, obj);
|
||||
int brightness = world.getLightFromNeighborsFor(EnumSkyBlock.SKY, obj.getPos());
|
||||
int lightX = brightness % 65536;
|
||||
int lightY = brightness / 65536;
|
||||
float scale = 0.6F;
|
||||
|
||||
Reference in new issue
Block a user