Fixes #2406: Not 100% satisfied with how it renders the item being crafted yet, but more cented than before.
This commit is contained in:
parent
6933173957
commit
5493757d25
|
@ -259,7 +259,7 @@ public class ClientHelper extends ServerHelper
|
||||||
{
|
{
|
||||||
final PacketAssemblerAnimation paa = (PacketAssemblerAnimation) o;
|
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 );
|
Minecraft.getMinecraft().effectRenderer.addEffect( fx );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -51,10 +51,14 @@ public class RenderFloatingItem extends RenderEntityItem
|
||||||
|
|
||||||
if( !( efi.getEntityItem().getItem() instanceof ItemBlock ) )
|
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();
|
GlStateManager.popMatrix();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue