 -                vertexbuffer.pos((double)(i1 + 1), (double)(k - 1), 0.0D).tex(0.0D, 0.0D).color(0, 0, 0, 255).endVertex();
 -                tessellator.draw();
 -                GlStateManager.enableTexture2D();
++            if (this.showSelectionBox && this.isSelected(j)) {
++                int leftX = this.left + (this.width / 2 - this.getListWidth() / 2);
++                int rightX = this.left + this.width / 2 + this.getListWidth() / 2;
 +
 +                NovaDraw.Vertex[] vertices = new NovaDraw.Vertex[]{
-+                        new NovaDraw.Vertex(i1, k + l + 2,  0, 1, new Color(128, 128, 128, 255)),
-+                        new NovaDraw.Vertex(j1, k + l + 2,  1, 1, new Color(128, 128, 128, 255)),
-+                        new NovaDraw.Vertex(j1, k - 2,  1, 0, new Color(128, 128, 128, 255)),
-+                        new NovaDraw.Vertex(i1, k - 2, 0, 0, new Color(128, 128, 128, 255)),
++                        new NovaDraw.Vertex(leftX, k - 2, 0, 0, new Color(128, 128, 128, 255)),
++                        new NovaDraw.Vertex(leftX, k + l + 2,  0, 1, new Color(128, 128, 128, 255)),
++                        new NovaDraw.Vertex(rightX, k + l + 2,  1, 1, new Color(128, 128, 128, 255)),
++                        new NovaDraw.Vertex(rightX, k - 2,  1, 0, new Color(128, 128, 128, 255)),
 +                };
 +
 +                Integer[] indices = new Integer[] {
 +                        0, 1, 2,
-+                        2, 0, 3,
++                        0, 2, 3,
 +                };
 +
 +                NovaDraw.draw(whiteTextureLocation, indices, vertices);

@@ -9 +12 @@ import net.minecraft.util.math.MathHelper;
-import org.lwjgl.input.Mouse;
+import com.continuum.nova.input.Mouse;
@@ -11,2 +14,5 @@ import org.lwjgl.input.Mouse;
-public abstract class GuiSlot
-{
+import java.awt.*;
+
+import static com.continuum.nova.NovaConstants.WHITE_TEXTURE_GUI_LOCATION;
+
+public abstract class GuiSlot {
@@ -62,0 +69 @@ public abstract class GuiSlot
+    protected boolean stateChanged;
@@ -126,5 +133 @@ public abstract class GuiSlot
-    protected abstract void drawBackground();
-
-    protected void updateItemPos(int entryID, int insideLeft, int yPos)
-    {
-    }
+    protected void updateItemPos(int entryID, int insideLeft, int yPos) {}
@@ -137,3 +140 @@ public abstract class GuiSlot
-    protected void drawListHeader(int insideLeft, int insideTop, Tessellator tessellatorIn)
-    {
-    }
+    protected void drawListHeader(int insideLeft, int insideTop) {}
@@ -141,3 +142 @@ public abstract class GuiSlot
-    protected void clickedHeader(int p_148132_1_, int p_148132_2_)
-    {
-    }
+    protected void clickedHeader(int p_148132_1_, int p_148132_2_) {}
@@ -145,3 +144 @@ public abstract class GuiSlot
-    protected void renderDecorations(int mouseXIn, int mouseYIn)
-    {
-    }
+    protected void renderDecorations(int mouseXIn, int mouseYIn) {}
@@ -149 +146 @@ public abstract class GuiSlot
-    public int getSlotIndexFromScreenCoords(int posX, int posY)
+    protected int getSlotIndexFromScreenCoords(int posX, int posY)
@@ -170,2 +167 @@ public abstract class GuiSlot
-    protected void bindAmountScrolled()
-    {
+    protected void bindAmountScrolled() {
@@ -188,3 +184,2 @@ public abstract class GuiSlot
-    public boolean isMouseYWithinSlotBounds(int p_148141_1_)
-    {
-        return p_148141_1_ >= this.top && p_148141_1_ <= this.bottom && this.mouseX >= this.left && this.mouseX <= this.right;
+    public boolean isMouseYWithinSlotBounds(int mouseYIn) {
+        return mouseYIn >= this.top && mouseYIn <= this.bottom && this.mouseX >= this.left && this.mouseX <= this.right;
@@ -203,6 +198,3 @@ public abstract class GuiSlot
-    public void actionPerformed(GuiButton button)
-    {
-        if (button.enabled)

-                this.mc.getTextureManager().bindTexture(Gui.OPTIONS_BACKGROUND);
+                this.mc.getRenderEngine().bindTexture(Gui.OPTIONS_BACKGROUND);
diff --git a/minecraft/client/Minecraft.java b/minecraft/client/Minecraft.java
index ad84c84..b246265 100644
--- a/minecraft/client/Minecraft.java
+++ b/minecraft/client/Minecraft.java
@@ -2,0 +3,2 @@ package net.minecraft.client;
