Rename keysAccessor to KeysAccessor.
This commit is contained in:
		
							parent
							
								
									47b9220ade
								
							
						
					
					
						commit
						073e3e64cb
					
				| @ -26,7 +26,7 @@ class KeyMappings { | ||||
| 
 | ||||
| 	@Inject(method = "<init>*", at = @At("RETURN")) | ||||
| 	private void onSettingsConstructed(Minecraft minecraft, File file, CallbackInfo ci) { | ||||
| 		Map<String, Integer> categoryMap = keysAccessor.getSortedCategoryMap(); | ||||
| 		Map<String, Integer> categoryMap = KeysAccessor.getSortedCategoryMap(); | ||||
| 		List<KeyMapping> newKeys = Lists.newArrayList(keyMappings); | ||||
| 		for (KeyMapping key : keysToAdd) { | ||||
| 			if (!categoryMap.containsKey(key.getCategory())) { | ||||
|  | ||||
| @ -7,7 +7,7 @@ import org.spongepowered.asm.mixin.gen.Accessor; | ||||
| import java.util.Map; | ||||
| 
 | ||||
| @Mixin(KeyMapping.class) | ||||
| public interface keysAccessor { | ||||
| public interface KeysAccessor { | ||||
| 	@Accessor("CATEGORY_SORT_ORDER") | ||||
| 	static Map<String, Integer> getSortedCategoryMap() { throw new AssertionError(); } | ||||
| } | ||||
| @ -3,7 +3,7 @@ | ||||
|   "package": "fr.username404.snowygui.mixins", | ||||
|   "compatibilityLevel": "JAVA_8", | ||||
|   "client": [ | ||||
|     "keysAccessor", | ||||
|     "KeysAccessor", | ||||
|     "KeyMappings" | ||||
|   ], | ||||
|   "injectors": { | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user