Fix illegal access exception, fixes #20
This commit is contained in:
		| @@ -228,4 +228,12 @@ public abstract class GuiBase extends GuiContainer { | ||||
|     public abstract void drawBackground(int x, int y, int mouseX, int mouseY); | ||||
|  | ||||
|     public abstract void drawForeground(int mouseX, int mouseY); | ||||
|  | ||||
|     public int getGuiLeft() { | ||||
|         return guiLeft; | ||||
|     } | ||||
|  | ||||
|     public int getGuiTop() { | ||||
|         return guiTop; | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -51,7 +51,7 @@ public class Scrollbar { | ||||
|  | ||||
|     public void draw(GuiBase gui) { | ||||
|         gui.bindTexture("icons.png"); | ||||
|         gui.drawTexture(gui.guiLeft + x, gui.guiTop + y + (int) currentScroll, canScroll() ? 232 : 244, 0, 12, 15); | ||||
|         gui.drawTexture(gui.getGuiLeft() + x, gui.getGuiTop() + y + (int) currentScroll, canScroll() ? 232 : 244, 0, 12, 15); | ||||
|     } | ||||
|  | ||||
|     public void update(GuiBase gui, int mouseX, int mouseY) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Raoul Van den Berge
					Raoul Van den Berge