Fix unnecessary string allocatino in chunkLightStorage

This commit is contained in:
James Seibel
2024-12-14 23:35:08 -06:00
parent 991c77485d
commit aaa62ccd89
@@ -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