mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 15:18:34 +01:00
Fixed what I just did
This commit is contained in:
parent
badfe60805
commit
a6c8ea596c
1 changed files with 4 additions and 1 deletions
|
@ -86,8 +86,11 @@ public class WorldDecorationEvent{
|
|||
int genZ = event.chunkZ+event.rand.nextInt(16)+8;
|
||||
int genY = event.world.getTopSolidOrLiquidBlock(genX, genZ)-1;
|
||||
|
||||
if(event.world.getBlock(genX, genY, genZ).getMaterial() == blockBelow && plant.canBlockStay(event.world, genX, genY+1, genZ)){
|
||||
if(event.world.getBlock(genX, genY, genZ).getMaterial() == blockBelow){
|
||||
event.world.setBlock(genX, genY+1, genZ, plant, meta, 2);
|
||||
if(!plant.canBlockStay(event.world, genX, genY+1, genZ)){
|
||||
event.world.setBlockToAir(genX, genY+1, genZ);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue