File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff line change 11# Enable or disable mod features
22
33mapart_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)
77listener.server_join: true # depends: mapstate_cache.inv, send_on_srvr_join
88listener.server_quit: true # depends: mapstate_cache.inv, log_logout_coords
99listener.game_message.read: true # depends: share_ignores, whisper_sound, whisper_pearl_pull
Original file line number Diff line number Diff line change 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
77map_highlights: true
88map_highlights.in_gui: true
You can’t perform that action at this time.
0 commit comments