Fix wrong offset in crafting preview.
This commit is contained in:
@@ -178,7 +178,7 @@ public class GuiCraftingPreview extends GuiBase {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
int slot = scrollbar != null ? (scrollbar.getOffset() * 2) : 0;
|
int slot = scrollbar != null ? (scrollbar.getOffset() * 3) : 0;
|
||||||
|
|
||||||
RenderHelper.enableGUIStandardItemLighting();
|
RenderHelper.enableGUIStandardItemLighting();
|
||||||
GlStateManager.enableDepth();
|
GlStateManager.enableDepth();
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ import net.minecraftforge.fml.relauncher.Side;
|
|||||||
import net.minecraftforge.fml.relauncher.SideOnly;
|
import net.minecraftforge.fml.relauncher.SideOnly;
|
||||||
|
|
||||||
public class ItemCore extends ItemBase {
|
public class ItemCore extends ItemBase {
|
||||||
public static final int TYPE_CONSTRUCTION = 0;
|
private static final int TYPE_CONSTRUCTION = 0;
|
||||||
public static final int TYPE_DESTRUCTION = 1;
|
private static final int TYPE_DESTRUCTION = 1;
|
||||||
|
|
||||||
public ItemCore() {
|
public ItemCore() {
|
||||||
super(new ItemInfo(RS.ID, "core"));
|
super(new ItemInfo(RS.ID, "core"));
|
||||||
|
|||||||
Reference in New Issue
Block a user