Gliby's Physics

Gliby's Physics

113k Downloads

Leaking PooledMutableBlockPos

Cadiboo opened this issue ยท 2 comments

commented

.getShape(world, blockPosition, blockState).getCollisionShape();

By the time blockPosition is used in the VoxelInfo, it has been release and is likely to have been re-retained in another area of the game and moved somewhere else.
This can be solved by only releasing blockPosition in the finalise method of the VoxelInfo or using a non-pooled block pos

commented

Closed by 5edd29f

commented

The issue has bee resolved in 5edd29f.
Thanks.