Camera view skips chunks outside the view distance (chunks that would be offered because the minimap loaded them)
This commit is contained in:
parent
ff17731cf8
commit
aeac1b1883
@ -188,6 +188,15 @@ class CameraWorldView(WorldView):
|
||||
log.debug("Discarding %d chunks...", len(chunks))
|
||||
worldScene.discardChunks(chunks)
|
||||
|
||||
def recieveChunk(self, chunk):
|
||||
cx, cz = chunk.chunkPosition
|
||||
x, y, z = self.viewCenter().chunkPos()
|
||||
dx = abs(cx - x)
|
||||
dz = abs(cz - z)
|
||||
if dx > self.viewDistance or dz > self.viewDistance:
|
||||
return iter([])
|
||||
return super(CameraWorldView, self).recieveChunk(chunk)
|
||||
|
||||
|
||||
class CameraElevateMouseAction(ViewMouseAction):
|
||||
labelText = "Wheel Controls Camera Elevation"
|
||||
|
Reference in New Issue
Block a user