Skip to content

Commit

Permalink
Allow ADVENTURE players collect souls
Browse files Browse the repository at this point in the history
Took 2 minutes
  • Loading branch information
Darkyenus committed Aug 4, 2019
1 parent 0a8fdf1 commit b0bb827
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/com/darkyen/minecraft/DeadSouls.java
Original file line number Diff line number Diff line change
@@ -204,7 +204,8 @@ private void processPlayers() {
}

// Process collisions
if (!player.isDead() && player.getGameMode() == GameMode.SURVIVAL) {
final GameMode gameMode = player.getGameMode();
if (!player.isDead() && (gameMode == GameMode.SURVIVAL || gameMode == GameMode.ADVENTURE)) {
//noinspection ForLoopReplaceableByForEach
for (int soulI = 0; soulI < visibleSouls.size(); soulI++) {
final SoulDatabase.Soul closestSoul = visibleSouls.get(soulI);

0 comments on commit b0bb827

Please sign in to comment.