Skip to content

Commit

Permalink
Allow destruction of user-placed-graves
Browse files Browse the repository at this point in the history
  • Loading branch information
B1n-ry authored Dec 27, 2024
1 parent 7e89148 commit f1a4faf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/b1n_ry/yigd/block/GraveBlock.java
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ public void playerDestroy(@NotNull Level level, @NotNull Player player, @NotNull

@Override
protected float getDestroyProgress(@NotNull BlockState state, @NotNull Player player, @NotNull BlockGetter level, @NotNull BlockPos pos) {
if (!(level.getBlockEntity(pos) instanceof GraveBlockEntity grave) || grave.isUnclaimed()
if (!(level.getBlockEntity(pos) instanceof GraveBlockEntity grave) || !grave.isUnclaimed()
|| YigdConfig.getConfig().graveConfig.retrieveMethods.onBreak) {
// Same calculations as done for "normal" blocks, except with the overwritten destroy speed of 0.8
float f = 0.8f;
Expand Down

0 comments on commit f1a4faf

Please sign in to comment.