From caee8b0e3ae1126e2b63af06ab6d770ecdf6bc61 Mon Sep 17 00:00:00 2001 From: B1n_ry Date: Sat, 30 Nov 2024 00:49:52 +0100 Subject: [PATCH] You no longer have to have your head on the grave to attempt to claim/rob a grave --- src/main/java/com/b1n_ry/yigd/block/GraveBlock.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 0fc2a9f..01e7d49 100644 --- a/src/main/java/com/b1n_ry/yigd/block/GraveBlock.java +++ b/src/main/java/com/b1n_ry/yigd/block/GraveBlock.java @@ -267,8 +267,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() - || (YigdConfig.getConfig().graveConfig.retrieveMethods.onBreak - && (new ResolvableProfile(player.getGameProfile())).equals(grave.getGraveSkull()))) { + || 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; int i = EventHooks.doPlayerHarvestCheck(player, state, level, pos) ? 30 : 100;