From aaa62ccd89da97d7615367164b234b2accd3f77f Mon Sep 17 00:00:00 2001 From: James Seibel Date: Sat, 14 Dec 2024 23:35:08 -0600 Subject: [PATCH] Fix unnecessary string allocatino in chunkLightStorage --- .../core/wrapperInterfaces/chunk/ChunkLightStorage.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/src/main/java/com/seibel/distanthorizons/core/wrapperInterfaces/chunk/ChunkLightStorage.java b/core/src/main/java/com/seibel/distanthorizons/core/wrapperInterfaces/chunk/ChunkLightStorage.java index 2e8577b21..ab3eaa5dc 100644 --- a/core/src/main/java/com/seibel/distanthorizons/core/wrapperInterfaces/chunk/ChunkLightStorage.java +++ b/core/src/main/java/com/seibel/distanthorizons/core/wrapperInterfaces/chunk/ChunkLightStorage.java @@ -205,10 +205,9 @@ public class ChunkLightStorage public int get(int x, int y, int z) { - String lockStr = this.concurrencyCheckLock.toString(); if (!this.concurrencyCheckLock.tryLock()) { - throw new ConcurrentModificationException("Thread ["+Thread.currentThread().getName()+"] attempted to get chunk light, lock: ["+lockStr+"]."); + throw new ConcurrentModificationException("Thread ["+Thread.currentThread().getName()+"] attempted to get chunk light, lock: ["+this.concurrencyCheckLock+"]."); } try