Skip to content

Commit 20905de

Browse files
committed
Use "mapArtOnlyVersion" by default
1 parent 734028d commit 20905de

3 files changed

Lines changed: 7 additions & 8 deletions

File tree

src/main/java/net/evmodder/evmod/Main.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ public class Main{
8383
// public static final String MC_VERSION = MinecraftVersion.CURRENT.getName();
8484
// public static final String MOD_TYPE = "fabric";
8585
// public static final String MOD_STRING = MOD_ID + "-" + MOD_TYPE + "-" + MC_VERSION + "-" + MOD_VERSION;
86-
private static final String CONFIG_NAME = "enabled_features_for_mapart_ver.txt";
8786

8887
private static Main instance; static Main getInstance(){return instance;}
8988
public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID);
@@ -108,7 +107,7 @@ public class Main{
108107

109108
private HashMap<String, Boolean> loadConfig(){
110109
HashMap<String, Boolean> config = new HashMap<>();
111-
final String configContents = FileIO_New.loadFile(CONFIG_NAME, getClass().getResourceAsStream("/"+CONFIG_NAME));
110+
final String configContents = FileIO_New.loadFile("enabled_features.txt", getClass().getResourceAsStream("/enabled_features_for_mapart_ver.txt"));
112111
for(String line : configContents.split("\\r?\\n")){
113112
final int sep = line.indexOf(':');
114113
if(sep == -1) continue;

src/main/resources/enabled_features.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Enable or disable mod features
22

33
mapart_features_only: false
4-
placement_helper.iframe: true
5-
placement_helper.mapart: true
6-
placement_helper.mapart.auto: true
4+
placement_helper.iframe: true #(registers: onTick())
5+
placement_helper.mapart: true #(registers: onTick() + listener.entityInteractEvent)
6+
placement_helper.mapart.auto: true #(registers: onTick() + listener.entityAttackEvent)
77
listener.server_join: true # depends: mapstate_cache.inv, send_on_srvr_join
88
listener.server_quit: true # depends: mapstate_cache.inv, log_logout_coords
99
listener.game_message.read: true # depends: share_ignores, whisper_sound, whisper_pearl_pull

src/main/resources/enabled_features_for_mapart_ver.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Enable or disable mod features
22

3-
placement_helper.iframe: true #(registers: onTick())
4-
placement_helper.mapart: true #(registers: onTick() + listener.entityInteractEvent)
5-
placement_helper.mapart.auto: true #(registers: onTick() + listener.entityAttackEvent)
3+
placement_helper.iframe: true
4+
placement_helper.mapart: true
5+
placement_helper.mapart.auto: true
66

77
map_highlights: true
88
map_highlights.in_gui: true

0 commit comments

Comments
 (0)