Skip to content

Commit b623d63

Browse files
committed
Fixed #1150
1 parent a9b50fe commit b623d63

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
modName=DynamicTrees
22
modId=dynamictrees
3-
modVersion=1.4.10
3+
modVersion=1.4.11
44

55
group=com.ferreusveritas.dynamictrees
66

src/main/java/com/ferreusveritas/dynamictrees/block/branch/BranchBlock.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,8 @@ public void playerWillDestroy(Level level, BlockPos pos, BlockState state, Playe
727727
*/
728728
public void breakDeliberate(LevelAccessor level, BlockPos pos, DynamicTrees.DestroyMode mode) {
729729
destroyMode = mode;
730-
FluidState state = level.getFluidState(pos);
730+
FluidState state = Optional.ofNullable(CoordUtils.getStateSafe(level, pos))
731+
.orElse(Blocks.AIR.defaultBlockState()).getFluidState();
731732
if (state.isEmpty())
732733
level.removeBlock(pos, false);
733734
else

0 commit comments

Comments
 (0)