Fixed Glimmering Flowers working below pylons for the enchanter.

This commit is contained in:
Vasco Lavos committed 2014-07-04 21:47:43 +01:00
1 parent aaecfe4127
commit 24fd39f004
2 files changed
+2 -2

No files matched your search

@@ -345,7 +345,7 @@ public class TileEnchanter extends TileMod implements IManaReceiver {
for(int[] pylon : PYLON_LOCATIONS[meta])
if(world.getBlock(pylon[0] + x, pylon[1] + y, pylon[2] + z) != ModBlocks.pylon ||
world.getBlock(pylon[0] + x, pylon[1] + y - 1, pylon[2] + z) != ModBlocks.flower)
(world.getBlock(pylon[0] + x, pylon[1] + y - 1, pylon[2] + z) != ModBlocks.flower && world.getBlock(pylon[0] + x, pylon[1] + y - 1, pylon[2] + z) != ModBlocks.shinyFlower))
return false;
for(int[] flower : FLOWER_LOCATIONS) {
@@ -61,7 +61,7 @@ public class TilePylon extends TileEntity {
Vector3 movementVector = centerBlock.sub(ourCoords).normalize().multiply(0.2);
Block block = worldObj.getBlock(xCoord, yCoord - 1, zCoord);
if(block == ModBlocks.flower) {
if(block == ModBlocks.flower || block == ModBlocks.shinyFlower) {
int fmeta = worldObj.getBlockMetadata(xCoord, yCoord - 1, zCoord);
float[] color = EntitySheep.fleeceColorTable[fmeta];