File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/main/java/org/spongepowered/api
entity/living/player/server Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2182,7 +2182,7 @@ public final class Keys {
21822182 public static final Key <Value <Integer >> POWER = Keys .key (ResourceKey .sponge ("power" ), Integer .class );
21832183
21842184 /**
2185- * The previous {@link GameMode} of a {@link ServerPlayer}.
2185+ * The previous {@link GameMode} of a {@link ServerPlayer}. Readonly.
21862186 */
21872187 public static final Key <Value <GameMode >> PREVIOUS_GAME_MODE = Keys .key (ResourceKey .sponge ("previous_game_mode" ), GameMode .class );
21882188
Original file line number Diff line number Diff line change @@ -349,8 +349,8 @@ default Value.Mutable<GameMode> gameMode() {
349349 *
350350 * @return The previous game mode of the player
351351 */
352- default Value . Mutable <GameMode > previousGameMode () {
353- return this .requireValue (Keys .PREVIOUS_GAME_MODE ). asMutable () ;
352+ default Value <GameMode > previousGameMode () {
353+ return this .requireValue (Keys .PREVIOUS_GAME_MODE );
354354 }
355355
356356 /**
You can’t perform that action at this time.
0 commit comments