Skip to content

Commit b9f8d35

Browse files
committed
set reuse_ship_chunks default to false
1 parent d4e7a7a commit b9f8d35

4 files changed

Lines changed: 10 additions & 4 deletions

File tree

common/src/main/java/com/github/litermc/vtil/Constants.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
public final class Constants {
77
public static final String MOD_ID = "vtil";
88
public static final String MOD_NAME = "vtil";
9-
public static final String MOD_VERSION = "0.5.7";
9+
public static final String MOD_VERSION = "0.5.8";
1010
public static final Logger LOG = LoggerFactory.getLogger(MOD_NAME);
1111

1212
private Constants() {}

common/src/main/java/com/github/litermc/vtil/config/Config.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ public final class Config {
1010

1111
/**
1212
* Reuse deleted ship's chunks to assemble new ships when possible.
13+
* Warn: Compatible issues may occur if enabled, only report issues when this is set to false.
1314
*/
14-
public static boolean reuseShipChunks = true;
15+
public static boolean reuseShipChunks = false;
1516

1617
/**
1718
* Recycle ships that no longer contains any blocks.

common/src/main/java/com/github/litermc/vtil/config/ConfigSpec.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.github.litermc.vtil.config;
22

3+
import com.github.litermc.vtil.Constants;
34
import com.github.litermc.vtil.platform.PlatformHelper;
45

56
import java.nio.file.Path;
@@ -28,7 +29,10 @@ private ConfigSpec() {}
2829
.push("recycle");
2930

3031
REUSE_SHIP_CHUNKS = builder
31-
.comment("Reuse deleted ship's chunks to assemble new ships when possible.")
32+
.comment(
33+
"Reuse deleted ship's chunks to assemble new ships when possible.\n" +
34+
"Warn: Compatible issues may occur if enabled, only report issues when this is set to false."
35+
)
3236
.define("reuse_ship_chunks", Config.reuseShipChunks);
3337

3438
RECYCLE_EMPTY_SHIPS = builder
@@ -46,6 +50,7 @@ private ConfigSpec() {}
4650
public static void syncServer(Path path) {
4751
if (Config.enableShadowMixins) {
4852
Config.reuseShipChunks = REUSE_SHIP_CHUNKS.get();
53+
Constants.LOG.info("vtil.reuse_ship_chunks = {}", Config.reuse_ship_chunks);
4954
Config.recycleEmptyShips = RECYCLE_EMPTY_SHIPS.get();
5055
} else {
5156
Config.reuseShipChunks = false;

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ org.gradle.jvmargs=-Xmx6G
66
org.gradle.daemon=true
77

88
# Project
9-
version=0.5.7
9+
version=0.5.8
1010
group=com.github.litermc.vtil
1111
java_version=17
1212

0 commit comments

Comments
 (0)