mirror of
https://github.com/BentoBoxWorld/Boxed.git
synced 2025-03-02 03:31:10 +01:00
Revert "Never decrease island under the starting size"
This reverts commit 4b0c698eac
.
This commit is contained in:
parent
8f7e56e195
commit
a23344a3b8
@ -151,8 +151,7 @@ public class AdvancementsManager {
|
|||||||
*/
|
*/
|
||||||
public int checkIslandSize(Island island) {
|
public int checkIslandSize(Island island) {
|
||||||
// Island is always a minimum of 1 for free.
|
// Island is always a minimum of 1 for free.
|
||||||
int defaultSize = addon.getSettings().getIslandProtectionRange();
|
int shouldSize = getIsland(island).getAdvancements().stream().mapToInt(this::getScore).sum() + 1;
|
||||||
int shouldSize = getIsland(island).getAdvancements().stream().mapToInt(this::getScore).sum() + defaultSize;
|
|
||||||
if (shouldSize < 1) {
|
if (shouldSize < 1) {
|
||||||
// Boxes can never be less than 1 in protection size
|
// Boxes can never be less than 1 in protection size
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user