Skip to content

Commit

Permalink
You no longer have to have your head on the grave to attempt to claim…
Browse files Browse the repository at this point in the history
…/rob a grave
  • Loading branch information
B1n-ry committed Nov 29, 2024
1 parent 3329693 commit caee8b0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/com/b1n_ry/yigd/block/GraveBlock.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit caee8b0

Please sign in to comment.