Skip to content

Commit 78dae57

Browse files
authored
Return uncached sections in getSections() method (#124)
1 parent 0784236 commit 78dae57

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/main/java/com/ldtteam/common/fakelevel/FakeChunk.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,12 @@ public boolean isYSpaceEmpty(int p_62075_, int p_62076_)
223223
public LevelChunkSection[] getSections()
224224
{
225225
// don't cache them
226-
return new LevelChunkSection[0];
226+
final FakeLevelChunkSection[] sections = new FakeLevelChunkSection[fakeLevel.getSectionsCount()];
227+
for (int i = 0; i < sections.length; i++)
228+
{
229+
sections[i] = new FakeLevelChunkSection(this, i);
230+
}
231+
return sections;
227232
}
228233

229234
@Override

0 commit comments

Comments
 (0)