Skip to content

Commit

Permalink
1.19.3-rc3
Browse files Browse the repository at this point in the history
Definitely still 4.5.0 as well
  • Loading branch information
kennytv committed Dec 6, 2022
1 parent cc9bf72 commit 0fe3d94
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,17 @@ public void registerMap() {
public void registerMap() {
map(Type.STRING); // Dimension
map(Type.STRING); // World
map(Type.LONG); // Seed
map(Type.UNSIGNED_BYTE); // Gamemode
map(Type.BYTE); // Previous gamemode
map(Type.BOOLEAN); // Debug
map(Type.BOOLEAN); // Flat
handler(worldDataTrackerHandlerByKey());
handler(wrapper -> {
// Old clients will always keep entity data (packed here as 0x02), nothing we can do there
final byte keepDataMask = wrapper.read(Type.BYTE);
wrapper.write(Type.BOOLEAN, (keepDataMask & 1) != 0); // Keep attributes
});
}
});

Expand Down

0 comments on commit 0fe3d94

Please sign in to comment.