Skip to content

Commit

Permalink
Update to Minecraft 1.8.8
Browse files Browse the repository at this point in the history
  • Loading branch information
mezz committed Nov 23, 2015
1 parent de5bb76 commit eeb803f
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 11 deletions.
16 changes: 13 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
plugins {
id "net.minecraftforge.gradle.forge" version "2.0.2"
buildscript {
repositories {
jcenter()
maven {
name = "forge"
url = "http://files.minecraftforge.net/maven"
}
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:2.1-SNAPSHOT'
}
}
apply plugin: 'net.minecraftforge.gradle.forge'

version = version_major + '.' + version_minor + '.' + version_patch
group= "mezz.jei" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
Expand All @@ -13,7 +23,7 @@ targetCompatibility = 1.8
minecraft {
version = mcversion + "-" + forgeversion
runDir = "run"
mappings = "snapshot_nodoc_20151110"
mappings = "snapshot_20151122"
}

repositories {
Expand Down
8 changes: 4 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
mcversion=1.8
forgeversion=11.14.4.1563
mcversion=1.8.8
forgeversion=11.14.4.1576-1.8.8

version_major=1
version_major=2
version_minor=0
version_patch=1
version_patch=0
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
import java.util.List;

import net.minecraft.item.crafting.CraftingManager;
import net.minecraft.item.crafting.IRecipe;

public class CraftingRecipeMaker {

@SuppressWarnings("unchecked")
public static List<Object> getCraftingRecipes() {
public static List<IRecipe> getCraftingRecipes() {
return CraftingManager.getInstance().getRecipeList();
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/mezz/jei/util/Commands.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public static void giveStack(@Nonnull ItemStack itemStack, int amount) {
List<String> commandStrings = new ArrayList<>();
commandStrings.add("/give");
commandStrings.add(senderName);
commandStrings.add((String) Item.itemRegistry.getNameForObject(itemStack.getItem()));
commandStrings.add(Item.itemRegistry.getNameForObject(itemStack.getItem()).toString());
commandStrings.add(String.valueOf(amount));
commandStrings.add(String.valueOf(itemStack.getItemDamage()));

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/mezz/jei/util/MouseHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public MouseHelper() {
Minecraft minecraft = Minecraft.getMinecraft();
displayWidth = minecraft.displayWidth;
displayHeight = minecraft.displayHeight;
scaledresolution = new ScaledResolution(minecraft, displayWidth, displayHeight);
scaledresolution = new ScaledResolution(minecraft);
}

public int getX() {
Expand Down

0 comments on commit eeb803f

Please sign in to comment.