mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 14:52:58 +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
@@ -16,12 +16,11 @@ import net.minecraft.init.Blocks;
|
||||
import net.minecraft.util.EnumFacing;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.fluids.Fluid;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
import net.minecraftforge.fml.relauncher.Side;
|
||||
import net.minecraftforge.fml.relauncher.SideOnly;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public class RenderDynamicTank extends TileEntitySpecialRenderer<TileEntityDynamicTank>
|
||||
{
|
||||
@@ -46,7 +45,7 @@ public class RenderDynamicTank extends TileEntitySpecialRenderer<TileEntityDynam
|
||||
{
|
||||
push();
|
||||
|
||||
GL11.glTranslated(getX(data.location.getX()), getY(data.location.getY()), getZ(data.location.getZ()));
|
||||
GL11.glTranslated(getX(data.location.xCoord), getY(data.location.yCoord), getZ(data.location.zCoord));
|
||||
|
||||
MekanismRenderer.glowOn(tileEntity.structure.fluidStored.getFluid().getLuminosity());
|
||||
MekanismRenderer.colorFluid(tileEntity.structure.fluidStored.getFluid());
|
||||
@@ -71,7 +70,7 @@ public class RenderDynamicTank extends TileEntitySpecialRenderer<TileEntityDynam
|
||||
{
|
||||
push();
|
||||
|
||||
GL11.glTranslated(getX(valveData.location.getX()), getY(valveData.location.getY()), getZ(valveData.location.getZ()));
|
||||
GL11.glTranslated(getX(valveData.location.xCoord), getY(valveData.location.yCoord), getZ(valveData.location.zCoord));
|
||||
|
||||
MekanismRenderer.glowOn(tileEntity.structure.fluidStored.getFluid().getLuminosity());
|
||||
|
||||
@@ -258,7 +257,7 @@ public class RenderDynamicTank extends TileEntitySpecialRenderer<TileEntityDynam
|
||||
|
||||
private int getValveFluidHeight(ValveRenderData data)
|
||||
{
|
||||
return data.valveLocation.getY() - data.location.getY();
|
||||
return data.valveLocation.yCoord - data.location.yCoord;
|
||||
}
|
||||
|
||||
private int getStages(int height)
|
||||
|
||||
Reference in new issue
Block a user