package net.tropicraft.core.common.block;

import net.minecraft.block.BlockState;
import net.minecraft.block.FlowerBlock;
import net.minecraft.potion.Effect;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.shapes.ISelectionContext;
import net.minecraft.util.math.shapes.VoxelShape;
import net.minecraft.world.IBlockReader;


public class TropicsFlowerBlock extends FlowerBlock {

    private final VoxelShape shape;

    public TropicsFlowerBlock(Effect effect, int effectDuration, VoxelShape shape, Properties properties) {
        super(effect, effectDuration, properties);
        this.shape = shape;
    }
    
    @Override
    public VoxelShape getShape(BlockState state, IBlockReader worldIn, BlockPos pos, ISelectionContext context) {
        return shape;
    }
}

@@ -192,16 +192,54 @@
 ockPos;%0A
+import net.minecraft.util.math.Vec3d;%0A
 import n
@@ -669,17 +669,10 @@
   %7D%0A
-    %0A    
+%0A%09
 @Ove
@@ -677,20 +677,17 @@
 verride%0A
-    
+%09
 public V
@@ -792,34 +792,110 @@
 ) %7B%0A
-        return shape;%0A    
+%09%09Vec3d vec3d = state.getOffset(worldIn, pos);%0A%09%09return shape.withOffset(vec3d.x, vec3d.y, vec3d.z);%0A%09
 %7D%0A%7D%0A

Fix flower block selection boxes not being offset