Skip to content

Commit

Permalink
Fix disenchanter drains xp from spectators.
Browse files Browse the repository at this point in the history
  • Loading branch information
MarbleGateKeeper committed Apr 1, 2024
1 parent 1a4bfd7 commit 6b9a008
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ public void tick() {

protected void absorbExperienceFromWorld() {
boolean absorbedXp = false;
List<Player> players = level.getEntitiesOfClass(Player.class, absorbArea, LivingEntity::isAlive);
List<Player> players = level.getEntitiesOfClass(Player.class, absorbArea, player -> player.isAlive() && !player.isSpectator());
if (!players.isEmpty()) {
AtomicInteger sum = new AtomicInteger();
internalTank.allowInsertion();
Expand Down

0 comments on commit 6b9a008

Please sign in to comment.