very tiny changes

This commit is contained in:
olebeck 2022-09-18 18:03:19 +02:00
parent d07ae06dee
commit d0894ec1ad
2 changed files with 2 additions and 6 deletions

View File

@ -191,9 +191,7 @@ func (m *MapUI) Redraw() {
}
if !m.img.Rect.Intersect(image.Rect(px_pos.X, px_pos.Y, px_pos.X+sz_chunk, px_pos.Y+sz_chunk)).Empty() {
draw_img_scaled_pos(m.img, m.renderedChunks[_ch], image.Point{
px_pos.X, px_pos.Y,
}, sz_chunk)
draw_img_scaled_pos(m.img, m.renderedChunks[_ch], px_pos, sz_chunk)
}
}

View File

@ -476,12 +476,10 @@ func (w *WorldState) OnConnect(proxy *utils.ProxyContext) {
if err != nil || len(gv) <= 1 {
logrus.Info("couldnt determine game version, assuming > 1.18")
}
if w.ispre118 {
logrus.Info("using legacy (< 1.18)")
}
dim_id := gd.Dimension
if w.ispre118 {
logrus.Info("using legacy (< 1.18)")
dim_id += 10
}
w.Dim = dimension_ids[uint8(dim_id)]