mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-18 03:15:07 +00:00
Fix floating flower spinning (thanks gigaherz and tterrag) Closes #9
This commit is contained in:
1 parent
50420c3b4b
commit
d498b7cd2e
1 file changed
+2
-4
@@ -45,12 +45,10 @@ public class RenderTileFloatingFlower extends TileEntitySpecialRenderer {
|
||||
if(tile.getWorld() != null)
|
||||
worldTime += new Random(tile.getPos().hashCode()).nextInt(1000);
|
||||
|
||||
GlStateManager.translate(0.5F, 0F, 0.5F);
|
||||
// todo 1.8.8 fix spin
|
||||
GlStateManager.translate(0.5F, 0, 0.5F);
|
||||
GlStateManager.rotate(-((float) worldTime * 0.5F), 0F, 1F, 0F);
|
||||
GlStateManager.translate(-0.5F, 0F, -0.5F);
|
||||
GlStateManager.translate(-0.5, (float) Math.sin(worldTime * 0.05F) * 0.1F, 0.5);
|
||||
|
||||
GlStateManager.translate(0F, (float) Math.sin(worldTime * 0.05F) * 0.1F, 0F);
|
||||
GlStateManager.rotate(4F * (float) Math.sin(worldTime * 0.04F), 1F, 0F, 0F);
|
||||
|
||||
Minecraft.getMinecraft().renderEngine.bindTexture(TextureMap.locationBlocksTexture);
|
||||
|
||||
Reference in new issue
Block a user