Skip to content

Commit

Permalink
fix some issues
Browse files Browse the repository at this point in the history
  • Loading branch information
BuckarooBanzay committed Oct 11, 2023
1 parent ecad16a commit 28119bb
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 16 deletions.
11 changes: 0 additions & 11 deletions mapblockaccessor/logger.go

This file was deleted.

4 changes: 2 additions & 2 deletions mapblockrenderer/renderer.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ func addColorComponent(c *color.RGBA, value int) *color.RGBA {

func (r *MapBlockRenderer) Render(pos1, pos2 *coords.MapBlockCoords) (*image.NRGBA, error) {
if pos1.X != pos2.X {
return nil, errors.New("X does not line up")
return nil, errors.New("x does not line up")
}

if pos1.Z != pos2.Z {
return nil, errors.New("Z does not line up")
return nil, errors.New("z does not line up")
}

renderedMapblocks.Inc()
Expand Down
2 changes: 1 addition & 1 deletion mapblockrenderer/renderer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func TestSimpleRender(t *testing.T) {
logrus.SetLevel(logrus.InfoLevel)

layers := []*layer.Layer{
&layer.Layer{
{
Id: 0,
Name: "Base",
From: -16,
Expand Down
2 changes: 1 addition & 1 deletion tilerenderer/renderer_benchmark_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func BenchmarkTileRender(b *testing.B) {
tdb, _ := tiledb.New(tiletmpdir)

layers := []*layer.Layer{
&layer.Layer{
{
Id: 0,
Name: "Base",
From: -16,
Expand Down
2 changes: 1 addition & 1 deletion tilerenderer/renderer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func TestTileRender(t *testing.T) {
tdb, _ := tiledb.New(tiletmpdir)

layers := []*layer.Layer{
&layer.Layer{
{
Id: 0,
Name: "Base",
From: -16,
Expand Down

0 comments on commit 28119bb

Please sign in to comment.