Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/main/java/com/ldtteam/common/fakelevel/FakeChunk.java
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,12 @@ public boolean isYSpaceEmpty(int p_62075_, int p_62076_)
public LevelChunkSection[] getSections()
{
// don't cache them
return new LevelChunkSection[0];
final FakeLevelChunkSection[] sections = new FakeLevelChunkSection[fakeLevel.getSectionsCount()];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we cache this maybe?

for (int i = 0; i < sections.length; i++)
{
sections[i] = new FakeLevelChunkSection(this, i);
}
return sections;
}

@Override
Expand Down