mirror of
https://github.com/songoda/SongodaCore.git
synced 2024-11-23 18:45:34 +01:00
7975f9088d
Moved code into private methods to make the Location#at call more readable and to reduce duplicate code. `PlotSquared.get()` is marked as `@NotNull` and is never null if `PlotSquaredProtection#isEnabled` returns true. That's why I removed the `null` check on the *API* with a check if PlotSquared is enabled. I replaced the usage of Java StreamAPI with a simple for loop for better potential performance. The loop is so simple and we don't know the plugins that might be using this class, thus greater performance for a small loss on readability is probably worth it + Removed some unused imports |
||
---|---|---|
.. | ||
src | ||
pom.xml |