Skip to content

Commit

Permalink
Updated compatibility with PlayerEx
Browse files Browse the repository at this point in the history
  • Loading branch information
CleverNucleus committed Jul 3, 2023
1 parent 98a81b5 commit 639885f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public TypedActionResult<ItemStack> use(World world, PlayerEntity user, Hand han
user.playSound(SoundEvents.ENTITY_ENDER_DRAGON_GROWL, SoundCategory.NEUTRAL, 0.75F, 1.0F);
} else {
PlayerData playerData = ExAPI.PLAYER_DATA.get(user);
playerData.reset();
playerData.reset(ExAPI.getConfig().resetOnDeath());

if(!user.isCreative()) {
itemStack.decrement(1);
Expand Down

0 comments on commit 639885f

Please sign in to comment.