mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 19:59:36 +00:00
Tweaked double flower placement a bit. Should fix #819
This commit is contained in:
1 parent
cca6f0b9ae
commit
7e1270e9ff
2 files changed
+8
-4
No files matched your search
@@ -146,10 +146,14 @@ public class BlockModFlower extends BlockFlower implements ILexiconable, IPickup
|
||||
@Override
|
||||
public void func_149853_b(World world, Random rand, int x, int y, int z) {
|
||||
int meta = world.getBlockMetadata(x, y, z);
|
||||
placeDoubleFlower(world, x, y, z, meta, 1 | 2);
|
||||
}
|
||||
|
||||
public static void placeDoubleFlower(World world, int x, int y, int z, int meta, int flags) {
|
||||
Block flower = meta >= 8 ? ModBlocks.doubleFlower2 : ModBlocks.doubleFlower1;
|
||||
int placeMeta = meta & 7;
|
||||
world.setBlock(x, y, z, flower, placeMeta, 1 | 2);
|
||||
world.setBlock(x, y + 1, z, flower, placeMeta | 8, 1 | 2);
|
||||
world.setBlock(x, y, z, flower, placeMeta, flags);
|
||||
world.setBlock(x, y + 1, z, flower, placeMeta | 8, flags);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user