Fix wrong offset in crafting preview.

This commit is contained in:
raoulvdberge
2018-07-25 18:06:18 +02:00
parent 4d93a5faf1
commit f715da7c7c
2 changed files with 3 additions and 3 deletions

View File

@@ -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();

View File

@@ -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"));