Do not destroy torches by TR fluids. Closes #2813
This commit is contained in:
parent
6a72d5011a
commit
248b9ef1a7
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue