Fixed grinding wheel's render rotation direction being wrong
This commit is contained in:
parent
de2a9a9608
commit
23cf8da7bb
2 changed files with 5 additions and 2 deletions
|
@ -25,7 +25,7 @@ public abstract class TileMechanical extends TileAdvanced implements IMechanical
|
|||
|
||||
protected float getLoad()
|
||||
{
|
||||
return 0.5f;
|
||||
return 0.9f;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -11,6 +11,7 @@ import net.minecraft.tileentity.TileEntity;
|
|||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraftforge.client.model.AdvancedModelLoader;
|
||||
import net.minecraftforge.client.model.obj.WavefrontObject;
|
||||
import net.minecraftforge.common.ForgeDirection;
|
||||
import resonantinduction.core.Reference;
|
||||
import cpw.mods.fml.client.FMLClientHandler;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
|
@ -35,7 +36,9 @@ public class RenderGrinderWheel extends TileEntitySpecialRenderer
|
|||
glPushMatrix();
|
||||
glTranslatef((float) x + 0.5F, (float) y + 0.5f, (float) z + 0.5F);
|
||||
glScalef(0.51f, 0.5f, 0.5f);
|
||||
RenderUtility.rotateBlockBasedOnDirection(tile.getDirection());
|
||||
ForgeDirection dir = tile.getDirection();
|
||||
dir = ForgeDirection.getOrientation(!(dir.ordinal() % 2 == 0) ? dir.ordinal() - 1 : dir.ordinal());
|
||||
RenderUtility.rotateBlockBasedOnDirection(dir);
|
||||
glRotatef((float) Math.toDegrees(tile.angle), 0, 0, 1);
|
||||
FMLClientHandler.instance().getClient().renderEngine.bindTexture(TEXTURE);
|
||||
MODEL.renderAll();
|
||||
|
|
Loading…
Reference in a new issue