update 1.19.2 server

This commit is contained in:
Tnze
2022-11-24 00:46:43 +08:00
parent 4fa99fe118
commit 740d14e7c6
3 changed files with 6 additions and 6 deletions

View File

@ -39,7 +39,7 @@ func (w *World) onPlayerSpawn(pk.Packet) error {
func (w *World) handleLevelChunkWithLightPacket(packet pk.Packet) error {
var pos level.ChunkPos
currentDimType := w.p.WorldInfo.DimensionCodec.DimensionType.Find(w.p.DimensionType)
currentDimType := w.p.WorldInfo.RegistryCodec.DimensionType.Find(w.p.DimensionType)
chunk := level.EmptyChunk(int(currentDimType.Height) / 16)
if err := packet.Scan(&pos, chunk); err != nil {
return err