diff --git a/subcommands/capture.go b/subcommands/capture.go index a62f4db..efdee8b 100644 --- a/subcommands/capture.go +++ b/subcommands/capture.go @@ -18,11 +18,6 @@ import ( "github.com/sirupsen/logrus" ) -var ( - SrcIp_client = net.IPv4(127, 0, 0, 1) - SrcIp_server = net.IPv4(243, 0, 0, 2) -) - func init() { utils.RegisterCommand(&CaptureCMD{}) } diff --git a/subcommands/world/chunk_render.go b/subcommands/world/chunk_render.go index 5960628..fa1265a 100644 --- a/subcommands/world/chunk_render.go +++ b/subcommands/world/chunk_render.go @@ -52,7 +52,7 @@ func chunkGetColorAt(c *chunk.Chunk, x uint8, y int16, z uint8) color.RGBA { p := cube.Pos{int(x), int(y), int(z)} have_up := false p.Side(cube.FaceUp).Neighbours(func(neighbour cube.Pos) { - if neighbour.X() < 0 || neighbour.X() >= 16 || neighbour.Z() < 0 || neighbour.Z() >= 16 { + if neighbour.X() < 0 || neighbour.X() >= 16 || neighbour.Z() < 0 || neighbour.Z() >= 16 || neighbour.Y() > c.Range().Max() { return } if !have_up {