Changed available memory required from 200MB to 400MB, Dynmap is default to false again ( For those who don't update it ); Added campfire & Potted Cactus to Painful blocks, removed duplicate Fire.

This commit is contained in:
PryPurity 2020-07-04 01:58:13 -05:00
parent c288b18afc
commit 14fbac1951
5 changed files with 10 additions and 8 deletions

View File

@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.wimbli.WorldBorder</groupId>
<artifactId>WorldBorder</artifactId>
<version>2.0.7</version>
<version>2.0.8</version>
<name>WorldBorder</name>
<url>https://github.com/PryPurity/WorldBorder</url>
<issueManagement>

View File

@ -119,7 +119,10 @@ public class BorderData {
painfulBlocks.add(Material.CACTUS);
painfulBlocks.add(Material.END_PORTAL);
painfulBlocks.add(Material.MAGMA_BLOCK);
painfulBlocks.add(Material.FIRE);
painfulBlocks.add(Material.CAMPFIRE);
painfulBlocks.add(Material.POTTED_CACTUS);
}
// the main data interacted with

View File

@ -38,7 +38,7 @@ public class Config {
private static int timerTicks = 4;
private static boolean whooshEffect = false;
private static boolean portalRedirection = true;
private static boolean dynmapEnable = true;
private static boolean dynmapEnable = false;
private static String dynmapMessage;
private static int dynmapPriority = 0;
private static boolean dynmapHideByDefault = false;

View File

@ -208,7 +208,6 @@ public class WorldFillTask implements Runnable {
int chunksToProcess = chunksPerRun;
if (chunksProcessedLastTick > 0 || pendingChunks.size() > 0) {
// Note we generally queue 3 chunks, so real numbers are 1/3 of chunksProcessedLastTick and pendingchunks.size
// Trying 4 chunks
int chunksExpectedToGetProcessed = (chunksProcessedLastTick - pendingChunks.size()) / 3 + 3;
if (chunksExpectedToGetProcessed < chunksToProcess)
chunksToProcess = chunksExpectedToGetProcessed;
@ -450,7 +449,7 @@ public class WorldFillTask implements Runnable {
if (notifyPlayer != null)
notifyPlayer.sendMessage("[Fill] " + text);
if (availMem < 200) { // running low on memory, auto-pause
if (availMem < 400) { // running low on memory, auto-pause
pausedForMemory = true;
Config.StoreFillTask();
text = "Available memory is very low, task is pausing. A cleanup will be attempted now, and the task will automatically continue if/when sufficient memory is freed up.\n Alternatively, if you restart the server, this task will automatically continue once the server is back up.";
@ -541,7 +540,7 @@ public class WorldFillTask implements Runnable {
if (chunk != null) {
// toggle "force loaded" flag on for chunk to prevent it from being unloaded while we need it
world.setChunkForceLoaded(x, z, true);
//
}
});
}

View File

@ -1,8 +1,8 @@
name: WorldBorder
authors: [Brettflan, PryPurity]
description: Efficient, feature-rich plugin for limiting the size of your worlds.
version: 2.0.7
api-version: 1.13
version: 2.0.8
api-version: 1.16
main: com.wimbli.WorldBorder.WorldBorder
softdepend:
- dynmap