From f1a4faf4b6e64965cfeddaa496c6b528cd6fd03f Mon Sep 17 00:00:00 2001 From: B1n_ry <45943938+B1n-ry@users.noreply.github.com> Date: Sat, 28 Dec 2024 00:28:29 +0100 Subject: [PATCH] Allow destruction of user-placed-graves --- src/main/java/com/b1n_ry/yigd/block/GraveBlock.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/b1n_ry/yigd/block/GraveBlock.java b/src/main/java/com/b1n_ry/yigd/block/GraveBlock.java index 01e7d493..b5e1b466 100644 --- a/src/main/java/com/b1n_ry/yigd/block/GraveBlock.java +++ b/src/main/java/com/b1n_ry/yigd/block/GraveBlock.java @@ -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;