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:
aidancbrady committed 2016-05-09 21:07:18 -04:00
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;