File tree Expand file tree Collapse file tree 6 files changed +21
-12
lines changed 
java/dev/nero/aimassistance Expand file tree Collapse file tree 6 files changed +21
-12
lines changed Original file line number Diff line number Diff line change 1+ ## Version 1.2.1  
2+ 
3+ -  The config file is now reloaded automatically when updated
4+ 
15## Version 1.2.0  
26
37* Built for forge 1.16.3, works with 1.16.2 and 1.16.1* 
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ apply plugin: 'net.minecraftforge.gradle'
1313apply plugin : ' eclipse' 
1414apply plugin : ' maven-publish' 
1515
16- version =  ' 1.2.0 -MC1.16.3 ' 
16+ version =  ' 1.2.1 -MC1.16.x ' 
1717group =  ' dev.nero.aimassistance'   //  http://maven.apache.org/guides/mini/guide-naming-conventions.html
1818archivesBaseName =  ' aimassistance' 
1919
@@ -43,5 +43,5 @@ minecraft {
4343}
4444
4545dependencies  {
46-     minecraft ' net.minecraftforge:forge:1.16.3-34.0 .0' 
46+     minecraft ' net.minecraftforge:forge:1.16.3-34.1 .0' 
4747}
Original file line number Diff line number Diff line change @@ -39,13 +39,6 @@ private void setup(final FMLCommonSetupEvent event) {
3939        Config .bakeConfig (); // init config values 
4040    }
4141
42-     @ SubscribeEvent 
43-     public  void  onModConfigEvent (final  ModConfig .ModConfigEvent  configEvent ) {
44-         if  (configEvent .getConfig ().getSpec () == Config .CLIENT_SPEC ) {
45-             Config .bakeConfig (); // update the values 
46-         }
47-     }
48- 
4942    @ SubscribeEvent 
5043    public  void  onPlayerTick (TickEvent .PlayerTickEvent  playerTickEvent ) {
5144        if  (Wrapper .playerPlaying ()) {
Original file line number Diff line number Diff line change 11package  dev .nero .aimassistance .config ;
22
3+ import  dev .nero .aimassistance .AimAssistanceMod ;
34import  net .minecraftforge .common .ForgeConfigSpec ;
5+ import  net .minecraftforge .eventbus .api .SubscribeEvent ;
6+ import  net .minecraftforge .fml .common .Mod ;
7+ import  net .minecraftforge .fml .config .ModConfig ;
48import  org .apache .commons .lang3 .tuple .Pair ;
59
10+ @ Mod .EventBusSubscriber (modid  = AimAssistanceMod .MOD_ID , bus  = Mod .EventBusSubscriber .Bus .MOD )
611public  class  Config  {
712
813    public  static  final  ClientConfig  CLIENT ;
@@ -18,6 +23,13 @@ public class Config {
1823    private  static  boolean  aimMobs ;
1924    private  static  boolean  aimBlocks ;
2025
26+     @ SubscribeEvent 
27+     public  static  void  onModConfigEvent (final  ModConfig .ModConfigEvent  configEvent ) {
28+         if  (configEvent .getConfig ().getSpec () == Config .CLIENT_SPEC ) {
29+             Config .bakeConfig ();
30+         }
31+     }
32+ 
2133    public  static  void  bakeConfig () {
2234        aimForceMobs  = CLIENT .aimForceMobs .get ();
2335        aimForceBlocks  = CLIENT .aimForceBlocks .get ();
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ license="MIT License"
55
66[[mods ]]
77modId =" aimassistancemod" 
8- version =" 1.2.0 " 
8+ version =" 1.2.1 " 
99displayName =" Aim Assistance" 
1010updateJSONURL =" https://raw.githubusercontent.com/N3ROO/AimAssistanceMod/MC_1.16.3/update.json" 
1111displayURL =" https://github.com/N3ROO/AimAssistanceMod/" 
Original file line number Diff line number Diff line change 11{
22  "homepage" : " https://github.com/N3ROO/AimAssistanceMod/releases"  ,
33  "promos" : {
4-     "1.16.3-latest" : " 1.2.0 "  ,
5-     "1.16.3-recommended" : " 1.2.0 " 
4+     "1.16.3-latest" : " 1.2.1 "  ,
5+     "1.16.3-recommended" : " 1.2.1 " 
66  }
77}
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments