Water plants drop fix

This commit is contained in:
paulevsGitch 2021-02-28 16:24:08 +03:00
parent 616c824257
commit 8e5996524d
3 changed files with 1 additions and 2 deletions

View file

@ -45,7 +45,6 @@ import ru.betterend.blocks.entities.PedestalBlockEntity;
import ru.betterend.patterns.Patterns; import ru.betterend.patterns.Patterns;
import ru.betterend.registry.EndBlocks; import ru.betterend.registry.EndBlocks;
import ru.betterend.rituals.InfusionRitual; import ru.betterend.rituals.InfusionRitual;
import ru.betterend.util.BlocksHelper;
public class PedestalBlock extends BlockBaseNotFull implements BlockEntityProvider { public class PedestalBlock extends BlockBaseNotFull implements BlockEntityProvider {
public final static EnumProperty<PedestalState> STATE = BlockProperties.PEDESTAL_STATE; public final static EnumProperty<PedestalState> STATE = BlockProperties.PEDESTAL_STATE;

View file

@ -88,6 +88,7 @@ public class UnderwaterPlantBlock extends BlockBaseNotFull implements IRenderTyp
@Override @Override
public BlockState getStateForNeighborUpdate(BlockState state, Direction facing, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) { public BlockState getStateForNeighborUpdate(BlockState state, Direction facing, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) {
if (!canPlaceAt(state, world, pos)) { if (!canPlaceAt(state, world, pos)) {
world.breakBlock(pos, true);
return Blocks.WATER.getDefaultState(); return Blocks.WATER.getDefaultState();
} }
else { else {

View file

@ -4,7 +4,6 @@ import java.util.Random;
import net.minecraft.client.util.math.Vector3f; import net.minecraft.client.util.math.Vector3f;
import net.minecraft.util.math.Vec3d; import net.minecraft.util.math.Vec3d;
import ru.betterend.util.sdf.operator.SDFRotation;
public class MHelper { public class MHelper {
public static final float PI2 = (float) (Math.PI * 2); public static final float PI2 = (float) (Math.PI * 2);