Skip to content

Commit

Permalink
fix gamemode NBT parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed May 28, 2021
1 parent 1f0881d commit f96ea12
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -271,7 +271,7 @@ public void setFoodTickTimer(int input) {
}

public GameMode getGameMode() {
return GameMode.values()[this.compound.getInt("playerGameType")];
return GameMode.getByValue(this.compound.getInt("playerGameType"));
}

@SuppressWarnings("deprecation")//Will most likely break in 1.7
Expand Down

0 comments on commit f96ea12

Please sign in to comment.