forked from SteamWar/SteamWar
Optimize some stuff and fix some other stuff
This commit is contained in:
+1
-1
@@ -36,7 +36,6 @@ import lombok.NonNull;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.World;
|
||||
import sun.misc.Unsafe;
|
||||
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
import java.lang.reflect.RecordComponent;
|
||||
@@ -138,6 +137,7 @@ public class DynamicRegionSystem implements RegionSystem {
|
||||
return GlobalRegion.INSTANCE;
|
||||
}
|
||||
|
||||
// TODO: Optimize later on!
|
||||
private Region get(Location location, Collection<Region> regions) {
|
||||
return regions.stream()
|
||||
.filter(region -> region.getArea().inRegion(location, false))
|
||||
|
||||
Reference in New Issue
Block a user