From d0894ec1ad49163d4fb254ced496e5fedefb5fdb Mon Sep 17 00:00:00 2001 From: olebeck <31539311+olebeck@users.noreply.github.com> Date: Sun, 18 Sep 2022 18:03:19 +0200 Subject: [PATCH] very tiny changes --- subcommands/world/map_item.go | 4 +--- subcommands/world/world.go | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/subcommands/world/map_item.go b/subcommands/world/map_item.go index 1c57001..b423377 100644 --- a/subcommands/world/map_item.go +++ b/subcommands/world/map_item.go @@ -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) } } diff --git a/subcommands/world/world.go b/subcommands/world/world.go index 312fbc8..c25bd47 100644 --- a/subcommands/world/world.go +++ b/subcommands/world/world.go @@ -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)]