Give the right amount of experience after mending (#13047)

This commit is contained in:
Lulu13022002
2025-09-06 22:49:56 +02:00
committed by GitHub
parent 9aaaadffaa
commit 19156cdd3b
3 changed files with 6 additions and 10 deletions
@@ -5,7 +5,6 @@ import org.bukkit.entity.Player;
import org.bukkit.event.HandlerList;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
/**
@@ -21,13 +20,13 @@ public class PlayerExpChangeEvent extends PlayerEvent {
@ApiStatus.Internal
public PlayerExpChangeEvent(@NotNull final Player player, final int expAmount) {
this(player, null, expAmount);
this(player, null, expAmount);
}
@ApiStatus.Internal
public PlayerExpChangeEvent(@NotNull final Player player, @Nullable final Entity sourceEntity, final int expAmount) {
super(player);
this.source = sourceEntity;
super(player);
this.source = sourceEntity;
this.exp = expAmount;
}