Fixes
This commit is contained in:
parent
cac7be60b1
commit
bf2249335e
10 changed files with 57 additions and 186 deletions
|
@ -17,7 +17,7 @@ public class BlockEndLotusFlower extends BlockPlant {
|
|||
private static final VoxelShape SHAPE_COLLISION = Block.createCuboidShape(0, 0, 0, 16, 2, 16);
|
||||
|
||||
public BlockEndLotusFlower() {
|
||||
super(FabricBlockSettings.of(Material.PLANT).lightLevel(15));
|
||||
super(FabricBlockSettings.of(Material.PLANT).nonOpaque().lightLevel(15));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -25,7 +25,7 @@ public class BlockEndLotusLeaf extends BlockBaseNotFull {
|
|||
private static final VoxelShape VSHAPE = Block.createCuboidShape(0, 0, 0, 16, 1, 16);
|
||||
|
||||
public BlockEndLotusLeaf() {
|
||||
super(FabricBlockSettings.of(Material.PLANT).sounds(BlockSoundGroup.WET_GRASS));
|
||||
super(FabricBlockSettings.of(Material.PLANT).nonOpaque().sounds(BlockSoundGroup.WET_GRASS));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -45,7 +45,6 @@ public class BlockEndLotusSeed extends BlockUnderwaterPlantWithAge {
|
|||
bpos.setY(bpos.getY() + 1);
|
||||
for (int i = 1; i <= height; i++) {
|
||||
if (!world.isAir(bpos)) {
|
||||
System.out.println("Set incorrect flower!");
|
||||
bpos.setY(bpos.getY() - 1);
|
||||
BlocksHelper.setWithoutUpdate(world, bpos, flower);
|
||||
bpos.setY(bpos.getY() - 1);
|
||||
|
@ -61,7 +60,6 @@ public class BlockEndLotusSeed extends BlockUnderwaterPlantWithAge {
|
|||
bpos.setY(bpos.getY() - 1);
|
||||
}
|
||||
|
||||
System.out.println("Set flower!");
|
||||
BlocksHelper.setWithoutUpdate(world, bpos, flower);
|
||||
bpos.setY(bpos.getY() - 1);
|
||||
stem = world.getBlockState(bpos);
|
||||
|
@ -100,7 +98,7 @@ public class BlockEndLotusSeed extends BlockUnderwaterPlantWithAge {
|
|||
p.setX(pos.getX() + x);
|
||||
for (int z = -1; z < 2; z ++) {
|
||||
p.setZ(pos.getZ() + z);
|
||||
if (world.isAir(p))
|
||||
if (world.isAir(p) && !world.getFluidState(p.down()).isEmpty())
|
||||
count ++;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue