while ((tickRegion = removalQueue.poll()) != null) {
if (tickRegion.isEmpty()) {
synchronized (tickRegions) {
if ((tickRegion instanceof EntityTickRegion ? entityCallables.remove(tickRegion.hashCode) : tileEntityCallables.remove(tickRegion.hashCode)) == tickRegion) {
tickRegions.remove(tickRegion);
tickRegion.onRemove();
}
}
}
}
}