Skip to content

Commit

Permalink
Use world data version instead of protocol version
Browse files Browse the repository at this point in the history
  • Loading branch information
zml2008 committed Dec 17, 2023
1 parent 540653a commit 3d89e18
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ private JSONFlags() {
}

private static final int VERSION_INITIAL = 0;
private static final int VERSION_1_16 = 716; // 20w16a
private static final int VERSION_1_20_3 = 765;
private static final int VERSION_1_16 = 2526; // 20w16a
private static final int VERSION_1_20_3 = 3679; // 23w40a

/**
* Whether to emit RGB text.
Expand Down Expand Up @@ -81,7 +81,7 @@ private JSONFlags() {
public static final FeatureFlag<Boolean> EMIT_HOVER_SHOW_ENTITY_ID_AS_INT_ARRAY = FeatureFlag.booleanFlag(key("emit/hover_show_entity_id_as_int_array"), true);

/**
* Versioned by protocol version.
* Versioned by world data version.
*/
private static final FeatureSet.Versioned BY_PROTOCOL_VERSION = FeatureSet.versionedBuilder()
.version(
Expand Down Expand Up @@ -121,7 +121,7 @@ private static Key key(final String value) {
}

/**
* Get Gson flags delineated by game protocol version.
* Get JSON flags delineated by world data version.
*
* @return the versioned flag set
* @since 4.15.0
Expand Down

0 comments on commit 3d89e18

Please sign in to comment.