mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-04-06 15:56:27 +00:00
Fixes
This commit is contained in:
@@ -63,6 +63,12 @@ public class HyperLock {
|
||||
unlock(x, z);
|
||||
}
|
||||
|
||||
public void withLong(long k, Runnable r) {
|
||||
lock(Cache.keyX(k), Cache.keyZ(k));
|
||||
r.run();
|
||||
unlock(Cache.keyX(k), Cache.keyZ(k));
|
||||
}
|
||||
|
||||
public void withNasty(int x, int z, NastyRunnable r) throws Throwable {
|
||||
lock(x, z);
|
||||
Throwable ee = null;
|
||||
|
||||
Reference in New Issue
Block a user