Skip to content

Commit

Permalink
Update 0150
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
Sharpik committed Nov 8, 2017
1 parent 1b72778 commit 89f5078
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build/built-jar.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Wed, 08 Nov 2017 02:50:49 +0100
#Wed, 08 Nov 2017 03:02:31 +0100


Z\:\\Games\\Minecraft\\mods\\moding\\1.6.4\\my\\SharpnetMod_1.6.4=
Binary file modified build/classes/ModSharpnet/ShWorldGenFlowers.class
Binary file not shown.
Binary file modified dist/SharpnetMod_1.6.4.jar
Binary file not shown.
13 changes: 9 additions & 4 deletions src/ModSharpnet/ShWorldGenFlowers.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,13 @@ public boolean generate(World par1World, Random par2Random,int BlockFlowerID, in

int orginID = par1World.getBlockId(posX, posY, posZ);

if (!Arrays.asList(allowedReplacemants).contains(orginID)) { posY++; }
if (!Arrays.asList(allowedReplacemants).contains(orginID))
{
posY++;
orginID = par1World.getBlockId(posX, posY, posZ);
}

int orginMeta = par1World.getBlockMetadata(posX, posY, posZ);

if ((posY >= minY) && (posY <= maxY))
{
Expand All @@ -52,13 +58,12 @@ public boolean generate(World par1World, Random par2Random,int BlockFlowerID, in

if ( par1World.isAirBlock(posX, posY, posZ) || Arrays.asList(allowedReplacemants).contains(orginID) )
{
int orginMeta = par1World.getBlockMetadata(posX, posY, posZ);


par1World.setBlock(posX, posY, posZ, BlockFlowerID, BlockFlowerMetadata, 2);

//System.out.println("ShDebug - spawner: Flower spawned: x:" + par3 +" y:"+ posY +" z:"+ par5);

if(!Block.blocksList[BlockFlowerID].canBlockStay(par1World, posX, posY--, posZ))
if(!Block.blocksList[BlockFlowerID].canBlockStay(par1World, posX, posY, posZ))
{
par1World.setBlock(posX, posY, posZ, orginID, orginMeta, 2);
}
Expand Down

0 comments on commit 89f5078

Please sign in to comment.