mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-12-26 10:27:56 +01:00
Merge pull request #1272 from creeper123123321/master
Set center chunk to 0,0 on respawn
This commit is contained in:
commit
17d61b51e9
@ -13,7 +13,6 @@ import us.myles.ViaVersion.api.remapper.PacketRemapper;
|
||||
import us.myles.ViaVersion.api.remapper.ValueCreator;
|
||||
import us.myles.ViaVersion.api.type.Type;
|
||||
import us.myles.ViaVersion.packets.State;
|
||||
import us.myles.ViaVersion.protocols.base.ProtocolInfo;
|
||||
import us.myles.ViaVersion.protocols.protocol1_13to1_12_2.types.Chunk1_13Type;
|
||||
import us.myles.ViaVersion.protocols.protocol1_14to1_13_2.MetadataRewriter;
|
||||
import us.myles.ViaVersion.protocols.protocol1_14to1_13_2.Protocol1_14To1_13_2;
|
||||
@ -335,6 +334,9 @@ public class WorldPackets {
|
||||
ClientWorld clientWorld = wrapper.user().get(ClientWorld.class);
|
||||
int dimensionId = wrapper.get(Type.INT, 0);
|
||||
clientWorld.setEnvironment(dimensionId);
|
||||
EntityTracker entityTracker = wrapper.user().get(EntityTracker.class);
|
||||
entityTracker.setChunkCenterX(0);
|
||||
entityTracker.setChunkCenterZ(0);
|
||||
}
|
||||
});
|
||||
handler(new PacketHandler() {
|
||||
|
Loading…
Reference in New Issue
Block a user