Botania Flowers now shift a bit depending on position similarly to vanilla flowers since 1.7. About time.

This commit is contained in:
Lizbeth Rika committed 2014-12-21 02:19:38 +00:00
1 parent 7403f69579
commit febf11f895
1 file changed
+7
@@ -15,6 +15,7 @@ import net.minecraft.block.Block;
import net.minecraft.client.renderer.EntityRenderer;
import net.minecraft.client.renderer.RenderBlocks;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.init.Blocks;
import net.minecraft.util.IIcon;
import net.minecraft.world.IBlockAccess;
import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
@@ -60,6 +61,12 @@ public class RenderSpecialFlower implements ISimpleBlockRenderingHandler {
double d0 = par2;
double d1 = par3;
double d2 = par4;
long sh;
sh = (long)(par2 * 3129871) ^ (long) par4 * 116129781L ^ (long) par3;
sh = sh * sh * 42317861L + sh * 11L;
d1 += ((double)((float)(sh >> 16 & 15L) / 15.0F) - 0.5D) * 0.3D;
d0 += ((double)((float)(sh >> 24 & 15L) / 15.0F) - 0.5D) * 0.3D;
drawCrossedSquares(blockAccess, par1Block, par2, par3, par4, d0, d1, d2, 1.0F, render);