very tiny changes
This commit is contained in:
parent
d07ae06dee
commit
d0894ec1ad
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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)]
|
||||
|
|
Loading…
Reference in New Issue