Do not destroy torches by TR fluids. Closes #2813

This commit is contained in:
drcrazy 2022-08-09 00:36:23 +03:00
parent 6a72d5011a
commit 248b9ef1a7

View file

@ -24,8 +24,10 @@
package reborncore.common.fluid;
import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
import net.minecraft.block.FluidBlock;
import net.minecraft.block.entity.BlockEntity;
import net.minecraft.fluid.FlowableFluid;
import net.minecraft.fluid.Fluid;
import net.minecraft.fluid.FluidState;
@ -84,7 +86,9 @@ public abstract class RebornFluid extends FlowableFluid {
@Override
protected void beforeBreakingBlock(WorldAccess world, BlockPos pos, BlockState state) {
// Should behave same as water
BlockEntity blockEntity = state.hasBlockEntity() ? world.getBlockEntity(pos) : null;
Block.dropStacks(state, world, pos, blockEntity);
}
@Override