File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/main/java/org/terasology/rendering/world Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -242,8 +242,8 @@ public boolean updateChunksInProximity(boolean force) {
242
242
// remove
243
243
List <Rect2i > removeRects = Rect2i .difference (oldView , newView );
244
244
for (Rect2i r : removeRects ) {
245
- for (int x = r .minX (); x < r .maxX (); ++x ) {
246
- for (int y = r .minY (); y < r .maxY (); ++y ) {
245
+ for (int x = r .minX (); x <= r .maxX (); ++x ) {
246
+ for (int y = r .minY (); y <= r .maxY (); ++y ) {
247
247
Chunk c = chunkProvider .getChunk (x , 0 , y );
248
248
if (c != null ) {
249
249
chunksInProximity .remove (c );
@@ -256,8 +256,8 @@ public boolean updateChunksInProximity(boolean force) {
256
256
// add
257
257
List <Rect2i > addRects = Rect2i .difference (newView , oldView );
258
258
for (Rect2i r : addRects ) {
259
- for (int x = r .minX (); x < r .maxX (); ++x ) {
260
- for (int y = r .minY (); y < r .maxY (); ++y ) {
259
+ for (int x = r .minX (); x <= r .maxX (); ++x ) {
260
+ for (int y = r .minY (); y <= r .maxY (); ++y ) {
261
261
Chunk c = chunkProvider .getChunk (x , 0 , y );
262
262
if (c != null && c .getChunkState () == Chunk .State .COMPLETE && worldProvider .getLocalView (c .getPos ()) != null ) {
263
263
chunksInProximity .add (c );
You can’t perform that action at this time.
0 commit comments