Trying to Fix Dimension NBT

This commit is contained in:
2022-06-13 16:34:43 +08:00
parent 0d5813339f
commit 835c4c32c9
2 changed files with 126 additions and 23 deletions

View File

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