Improved CPU load when spamming invalid remote ship controllers
This commit is contained in:
parent
232b7539f3
commit
0053138638
1 changed files with 3 additions and 0 deletions
|
@ -156,6 +156,9 @@ public class GlobalRegionManager {
|
|||
|
||||
@Nullable
|
||||
public static GlobalRegion getByUUID(final EnumGlobalRegionType enumGlobalRegionType, final UUID uuid) {
|
||||
if (uuid == null) {
|
||||
return null;
|
||||
}
|
||||
for (final Integer dimensionId : registry.keySet()) {
|
||||
final CopyOnWriteArraySet<GlobalRegion> setGlobalRegions = registry.get(dimensionId);
|
||||
if (setGlobalRegions == null) {
|
||||
|
|
Loading…
Reference in a new issue