now using ThreadMapUtil for temp array during saving

This commit is contained in:
cola98765
2021-09-20 12:50:49 +02:00
parent 25fd29b97e
commit 1156b7dd28
3 changed files with 11 additions and 3 deletions
@@ -152,7 +152,7 @@ public class VerticalLevelContainer implements LevelContainer
{
int index = 0;
int tempIndex;
byte[] tempData = new byte[2 + (size * size * maxVerticalData * 8)];
byte[] tempData = ThreadMapUtil.getSaveContainer(2 + (size * size * maxVerticalData * 8));
tempData[index] = detailLevel;
index++;
tempData[index] = (byte) maxVerticalData;