mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-29 13:36:16 +01:00
Join game fixes
This commit is contained in:
parent
1308dcb8dd
commit
69d50fa992
@ -253,7 +253,7 @@ public final class EntityPackets extends EntityRewriter<Protocol1_19To1_18_2> {
|
||||
|
||||
final String name = (String) dimensionCompound.get("name").getValue();
|
||||
dimensionDataMap.put(name, new DimensionDataImpl(element));
|
||||
dimensionsMap.put(element, name);
|
||||
dimensionsMap.put(element.clone(), name);
|
||||
}
|
||||
tracker(wrapper.user()).setDimensions(dimensionDataMap);
|
||||
|
||||
@ -268,6 +268,7 @@ public final class EntityPackets extends EntityRewriter<Protocol1_19To1_18_2> {
|
||||
map(Type.VAR_INT); // Simulation distance
|
||||
map(Type.BOOLEAN); // Reduced debug info
|
||||
map(Type.BOOLEAN); // Show death screen
|
||||
map(Type.BOOLEAN); // Debug
|
||||
map(Type.BOOLEAN); // Flat
|
||||
create(Type.OPTIONAL_GLOBAL_POSITION, null); // Last death location
|
||||
handler(playerTrackerHandler());
|
||||
|
@ -27,7 +27,7 @@ public final class DimensionRegistryStorage implements StorableObject {
|
||||
|
||||
private Map<CompoundTag, String> dimensions;
|
||||
|
||||
public @Nullable String dimensionKey(CompoundTag dimensionData) {
|
||||
public @Nullable String dimensionKey(final CompoundTag dimensionData) {
|
||||
return dimensions.get(dimensionData); // HMMMMMMMMMMM
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user