Skip to content

Commit

Permalink
increase default colliding list size
Browse files Browse the repository at this point in the history
  • Loading branch information
rfresh2 committed Oct 17, 2024
1 parent 8a04454 commit 60dc60e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/zenith/feature/world/World.java
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public LongList getBlockPosLongListInCollisionBox(final LocalizedCollisionBox cb
}

public List<BlockState> getCollidingBlockStates(final LocalizedCollisionBox cb) {
final List<BlockState> blockStates = new ArrayList<>(0);
final List<BlockState> blockStates = new ArrayList<>(4);
LongList blockPosList = getBlockPosLongListInCollisionBox(cb);
for (int i = 0; i < blockPosList.size(); i++) {
var blockPos = blockPosList.getLong(i);
Expand Down

0 comments on commit 60dc60e

Please sign in to comment.