More kelp things
This commit is contained in:
parent
c58cf68720
commit
8403dcbe6b
2 changed files with 24 additions and 2 deletions
|
@ -124,7 +124,12 @@ public class BlockBOPCoral extends BlockFlower
|
|||
@Override
|
||||
public int damageDropped(int meta)
|
||||
{
|
||||
return meta & 15;
|
||||
if (meta < 3)
|
||||
{
|
||||
return 3;
|
||||
}
|
||||
|
||||
return meta;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -40,6 +40,8 @@ public class WorldGenKelp extends WorldGenerator
|
|||
boolean var22 = false;
|
||||
int var17;
|
||||
int var16;
|
||||
int var999 = 2;
|
||||
int var998;
|
||||
|
||||
for (var15 = 0; var15 <= var8; ++var15)
|
||||
{
|
||||
|
@ -72,9 +74,24 @@ public class WorldGenKelp extends WorldGenerator
|
|||
{
|
||||
this.setBlockAndMetadata(var1, var3, var4 + 1, var5, Blocks.coral.get().blockID, 0);
|
||||
this.setBlockAndMetadata(var1, var3, var4 + var16, var5, Blocks.coral.get().blockID, 1);
|
||||
//this.setBlockAndMetadata(var1, var3, var4, var5, Blocks.coral.get().blockID, 2);
|
||||
++var999;
|
||||
}
|
||||
}
|
||||
|
||||
var998 = var1.getBlockId(var3, (var4 + (var999 + 1)), var5);
|
||||
|
||||
if (var998 == Block.waterStill.blockID || var998 == Block.waterMoving.blockID)
|
||||
{
|
||||
if (var999 == 2)
|
||||
{
|
||||
this.setBlockAndMetadata(var1, var3, var4 + var999, var5, Blocks.coral.get().blockID, 2);
|
||||
this.setBlockAndMetadata(var1, var3, var4 + 1, var5, Blocks.coral.get().blockID, 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.setBlockAndMetadata(var1, var3, var4 + var999, var5, Blocks.coral.get().blockID, 2);
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
} else
|
||||
|
|
Loading…
Reference in a new issue