Skip to content

Commit

Permalink
update mappings version, and forge build
Browse files Browse the repository at this point in the history
  • Loading branch information
progwml6 committed Mar 11, 2015
1 parent f246f78 commit f0bfe7c
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 16 deletions.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ version = "${config.minecraft_version}-${artifact_version}"

minecraft {
version = config.minecraft_version + "-" + config.forge_version
mappings = config.mappings
runDir = 'run'
replace '${version}', project.version
}
Expand Down
3 changes: 2 additions & 1 deletion build.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
mod_version=0.4
minecraft_version=1.8
forge_version=11.14.0.1251-1.8
forge_version=11.14.1.1334
mappings=snapshot_20150310

3 changes: 2 additions & 1 deletion src/mantle/Mantle.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
import static mantle.lib.CoreRepo.modId;
import static mantle.lib.CoreRepo.modName;
import static mantle.lib.CoreRepo.modVersion;

import LZMA.LzmaInputStream;
import mantle.books.BookData;
import mantle.books.BookDataStore;
import mantle.common.IDDumps;
Expand Down Expand Up @@ -67,7 +69,6 @@ public void preInit (FMLPreInitializationEvent evt)
CoreConfig.loadConfiguration(evt.getModConfigurationDirectory());

NetworkRegistry.INSTANCE.registerGuiHandler(instance, proxy);

mantleBook = (Manual) new Manual().setUnlocalizedName("mantle.manual");
GameRegistry.registerItem(mantleBook, "mantleBook");

Expand Down
2 changes: 1 addition & 1 deletion src/mantle/books/external/ZipLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ else if (bl != null)
{
try
{
is.setTagCompound(JsonToNBT.func_180713_a(bis.tags));
is.setTagCompound(JsonToNBT.getTagFromJson(bis.tags));
}
catch (Exception e1)
{
Expand Down
2 changes: 1 addition & 1 deletion src/mantle/client/pages/ContentsTablePage.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public void renderContentLayer (int localWidth, int localHeight, boolean isTrans
manual.renderitem.zLevel = 100;
for (int i = 0; i < icons.length; i++)
{
manual.renderitem.func_175042_a(icons[i], localWidth + 16, localHeight + 18 * i + 18);
manual.renderitem.renderItemIntoGUI(icons[i], localWidth + 16, localHeight + 18 * i + 18);
int yOffset = 18;
if (isTranslatable)
iconText[i] = StatCollector.translateToLocal(iconText[i]);
Expand Down
12 changes: 6 additions & 6 deletions src/mantle/client/pages/CraftingPage.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,25 +56,25 @@ public void drawCraftingPage (String info, ItemStack[] icons, int recipeSize, in

if (recipeSize == 2)
{
manual.renderitem.func_180450_b(icons[0], (localWidth + 126) / 2, (localHeight + 68) / 2);
manual.renderitem.renderItemAndEffectIntoGUI(icons[0], (localWidth + 126) / 2, (localHeight + 68) / 2);
if (icons[0].stackSize > 1)
manual.renderitem.func_180453_a(manual.fonts, icons[0], (localWidth + 126) / 2, (localHeight + 68) / 2, String.valueOf(icons[0].stackSize));
manual.renderitem.renderItemOverlayIntoGUI(manual.fonts, icons[0], (localWidth + 126) / 2, (localHeight + 68) / 2, String.valueOf(icons[0].stackSize));
for (int i = 0; i < icons.length - 1; i++)
{
if (icons[i + 1] != null)
manual.renderitem.func_180450_b(icons[i + 1], (localWidth + 14 + 36 * (i % 2)) / 2, (localHeight + 36 * (i / 2) + 52) / 2);
manual.renderitem.renderItemAndEffectIntoGUI(icons[i + 1], (localWidth + 14 + 36 * (i % 2)) / 2, (localHeight + 36 * (i / 2) + 52) / 2);
}
}

if (recipeSize == 3)
{
manual.renderitem.func_180450_b(icons[0], (localWidth + 138) / 2, (localHeight + 70) / 2);
manual.renderitem.renderItemAndEffectIntoGUI(icons[0], (localWidth + 138) / 2, (localHeight + 70) / 2);
if (icons[0].stackSize > 1)
manual.renderitem.func_180453_a(manual.fonts, icons[0], (localWidth + 126) / 2, (localHeight + 68) / 2, String.valueOf(icons[0].stackSize));
manual.renderitem.renderItemOverlayIntoGUI(manual.fonts, icons[0], (localWidth + 126) / 2, (localHeight + 68) / 2, String.valueOf(icons[0].stackSize));
for (int i = 0; i < icons.length - 1; i++)
{
if (icons[i + 1] != null)
manual.renderitem.func_180450_b(icons[i + 1], (localWidth - 2 + 36 * (i % 3)) / 2, (localHeight + 36 * (i / 3) + 34) / 2);
manual.renderitem.renderItemAndEffectIntoGUI(icons[i + 1], (localWidth - 2 + 36 * (i % 3)) / 2, (localHeight + 36 * (i / 3) + 34) / 2);
}
}

Expand Down
8 changes: 4 additions & 4 deletions src/mantle/client/pages/FurnacePage.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ public void renderContentLayer (int localWidth, int localHeight, boolean isTrans
RenderHelper.enableGUIStandardItemLighting();
manual.renderitem.zLevel = 100;

manual.renderitem.func_180450_b(MantleClientRegistry.getManualIcon("coal"), (localWidth + 38) / 2, (localHeight + 110) / 2);
manual.renderitem.func_180450_b(icons[0], (localWidth + 106) / 2, (localHeight + 74) / 2);
manual.renderitem.func_180450_b(icons[1], (localWidth + 38) / 2, (localHeight + 38) / 2);
manual.renderitem.renderItemAndEffectIntoGUI(MantleClientRegistry.getManualIcon("coal"), (localWidth + 38) / 2, (localHeight + 110) / 2);
manual.renderitem.renderItemAndEffectIntoGUI(icons[0], (localWidth + 106) / 2, (localHeight + 74) / 2);
manual.renderitem.renderItemAndEffectIntoGUI(icons[1], (localWidth + 38) / 2, (localHeight + 38) / 2);

if (icons[0].stackSize > 1)
manual.renderitem.func_180453_a(manual.fonts, icons[0], (localWidth + 106) / 2, (localHeight + 74) / 2, String.valueOf(icons[0].stackSize));
manual.renderitem.renderItemOverlayIntoGUI(manual.fonts, icons[0], (localWidth + 106) / 2, (localHeight + 74) / 2, String.valueOf(icons[0].stackSize));

manual.renderitem.zLevel = 0;
GL11.glScalef(0.5F, 0.5F, 0.5F);
Expand Down
2 changes: 1 addition & 1 deletion src/mantle/client/pages/SidebarPage.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public void renderContentLayer (int localWidth, int localHeight, boolean isTrans
{
iconText[i] = StatCollector.translateToLocal(iconText[i]);
}
manual.renderitem.func_175042_a(icons[i], localWidth + 8, localHeight + 18 * i + offset);
manual.renderitem.renderItemIntoGUI(icons[i], localWidth + 8, localHeight + 18 * i + offset);
int yOffset = 39;
if (iconText[i].length() > 40)
yOffset = 34;
Expand Down
2 changes: 1 addition & 1 deletion src/mantle/common/IDDumps.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public static void dump(){
}
if (CoreConfig.dumpEnchantIDs)
{
for (Enchantment e : Enchantment.enchantmentsList)
for (Enchantment e : Enchantment.enchantmentsBookList)
{
if (e != null && e.getName() != null)
{
Expand Down

0 comments on commit f0bfe7c

Please sign in to comment.