mirror of
https://github.com/CosmicStar98/bedrocktool.git
synced 2024-06-02 01:05:16 +00:00
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() {
|
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{
|
draw_img_scaled_pos(m.img, m.renderedChunks[_ch], px_pos, sz_chunk)
|
||||||
px_pos.X, px_pos.Y,
|
|
||||||
}, sz_chunk)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -476,12 +476,10 @@ func (w *WorldState) OnConnect(proxy *utils.ProxyContext) {
|
||||||
if err != nil || len(gv) <= 1 {
|
if err != nil || len(gv) <= 1 {
|
||||||
logrus.Info("couldnt determine game version, assuming > 1.18")
|
logrus.Info("couldnt determine game version, assuming > 1.18")
|
||||||
}
|
}
|
||||||
if w.ispre118 {
|
|
||||||
logrus.Info("using legacy (< 1.18)")
|
|
||||||
}
|
|
||||||
|
|
||||||
dim_id := gd.Dimension
|
dim_id := gd.Dimension
|
||||||
if w.ispre118 {
|
if w.ispre118 {
|
||||||
|
logrus.Info("using legacy (< 1.18)")
|
||||||
dim_id += 10
|
dim_id += 10
|
||||||
}
|
}
|
||||||
w.Dim = dimension_ids[uint8(dim_id)]
|
w.Dim = dimension_ids[uint8(dim_id)]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user