fix non devenv crash + remove broken colour thing
This commit is contained in:
		
							parent
							
								
									f95fd5d587
								
							
						
					
					
						commit
						26756e8c86
					
				
					 3 changed files with 9 additions and 9 deletions
				
			
		|  | @ -8,17 +8,17 @@ import me.kawaiizenbo.moonlight.util.ReflectionUtils; | |||
| 
 | ||||
| public class HUDModule extends Module_  | ||||
| { | ||||
|     public DoubleSetting r = new DoubleSetting("Red", 0x55, 0, 255, 0, ReflectionUtils.tryGetMethod("updateHUD()V", getClass())); | ||||
|     public DoubleSetting g = new DoubleSetting("Green", 255, 0, 255, 0, ReflectionUtils.tryGetMethod("updateHUD()V", getClass())); | ||||
|     public DoubleSetting b = new DoubleSetting("Blue", 255, 0, 255, 0, ReflectionUtils.tryGetMethod("updateHUD()V", getClass())); | ||||
|     //public DoubleSetting r = new DoubleSetting("Red", 0x55, 0, 255, 0, ReflectionUtils.tryGetMethod("updateHUD()V", getClass())); | ||||
|     //public DoubleSetting g = new DoubleSetting("Green", 255, 0, 255, 0, ReflectionUtils.tryGetMethod("updateHUD()V", getClass())); | ||||
|     //public DoubleSetting b = new DoubleSetting("Blue", 255, 0, 255, 0, ReflectionUtils.tryGetMethod("updateHUD()V", getClass())); | ||||
|     //public ColorSetting color = new ColorSetting("Color", 0x55FFFF, ReflectionUtils.tryGetMethod("updateHUD", getClass())); | ||||
|     public HUDModule() | ||||
|     { | ||||
|         super("HUD", "Enables or disables the Moonlight HUD.", Category.RENDER); | ||||
|         this.enabled = true; | ||||
|         settings.add(r); | ||||
|         settings.add(g); | ||||
|         settings.add(b); | ||||
|         //settings.add(r); | ||||
|         //settings.add(g); | ||||
|         //settings.add(b); | ||||
|         //settings.add(color); | ||||
|     }     | ||||
| 
 | ||||
|  |  | |||
|  | @ -16,11 +16,11 @@ public class HUD | |||
|     public static HUD INSTANCE = new HUD(); | ||||
| 	private MinecraftClient mc = MinecraftClient.getInstance(); | ||||
| 	TextRenderer textRenderer = mc.textRenderer; | ||||
|     public int hudColor = ColorUtils.rgbaToInt( | ||||
|     public int hudColor = 0xFF00FFFF; /*ColorUtils.rgbaToInt( | ||||
|         (int)((HUDModule)ModuleManager.INSTANCE.getModuleByName("HUD")).r.value, | ||||
|         (int)((HUDModule)ModuleManager.INSTANCE.getModuleByName("HUD")).g.value, | ||||
|         (int)((HUDModule)ModuleManager.INSTANCE.getModuleByName("HUD")).b.value, | ||||
|         255 ); | ||||
|         255 );*/ | ||||
| 
 | ||||
|     public void renderHUD(DrawContext drawContext, int scaledWidth, int scaledHeight) | ||||
|     { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 kawaiizenbo
						kawaiizenbo