Skip to content

Commit

Permalink
Port a quick fix from @immortius to multiplayer branch in preparation…
Browse files Browse the repository at this point in the history
… of making a one-time stable build before retiring it soon.
  • Loading branch information
Cervator committed Oct 19, 2013
1 parent 102b5df commit 6dd5652
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,8 @@ public boolean updateChunksInProximity(boolean force) {
// remove
List<Rect2i> removeRects = Rect2i.difference(oldView, newView);
for (Rect2i r : removeRects) {
for (int x = r.minX(); x < r.maxX(); ++x) {
for (int y = r.minY(); y < r.maxY(); ++y) {
for (int x = r.minX(); x <= r.maxX(); ++x) {
for (int y = r.minY(); y <= r.maxY(); ++y) {
Chunk c = chunkProvider.getChunk(x, 0, y);
if (c != null) {
chunksInProximity.remove(c);
Expand All @@ -256,8 +256,8 @@ public boolean updateChunksInProximity(boolean force) {
// add
List<Rect2i> addRects = Rect2i.difference(newView, oldView);
for (Rect2i r : addRects) {
for (int x = r.minX(); x < r.maxX(); ++x) {
for (int y = r.minY(); y < r.maxY(); ++y) {
for (int x = r.minX(); x <= r.maxX(); ++x) {
for (int y = r.minY(); y <= r.maxY(); ++y) {
Chunk c = chunkProvider.getChunk(x, 0, y);
if (c != null && c.getChunkState() == Chunk.State.COMPLETE && worldProvider.getLocalView(c.getPos()) != null) {
chunksInProximity.add(c);
Expand Down

0 comments on commit 6dd5652

Please sign in to comment.