Fixes #2406: Not 100% satisfied with how it renders the item being crafted yet, but more cented than before.

This commit is contained in:
Sebastian Hartte 2016-10-03 03:29:52 +02:00
parent 6933173957
commit 5493757d25
2 changed files with 7 additions and 3 deletions

View File

@ -259,7 +259,7 @@ public class ClientHelper extends ServerHelper
{
final PacketAssemblerAnimation paa = (PacketAssemblerAnimation) o;
final AssemblerFX fx = new AssemblerFX( Minecraft.getMinecraft().theWorld, posX, posY, posZ, 0.0D, 0.0D, 0.0D, paa.rate, paa.is );
final AssemblerFX fx = new AssemblerFX( worldObj, posX, posY, posZ, 0.0D, 0.0D, 0.0D, paa.rate, paa.is );
Minecraft.getMinecraft().effectRenderer.addEffect( fx );
}

View File

@ -51,10 +51,14 @@ public class RenderFloatingItem extends RenderEntityItem
if( !( efi.getEntityItem().getItem() instanceof ItemBlock ) )
{
GlStateManager.translate( 0, -0.15f, 0 );
GlStateManager.translate( 0, -0.3f, 0 );
}
else
{
GlStateManager.translate( 0, -0.2f, 0 );
}
super.doRender( efi, x, y, z, yaw, partialTick );
super.doRender( efi, x, y, z, yaw, 0 );
GlStateManager.popMatrix();
}
}