Skip to content

Commit

Permalink
mc 1.10 update
Browse files Browse the repository at this point in the history
  • Loading branch information
mung3r committed Sep 18, 2016
1 parent 60ad790 commit 8696646
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>se.crafted.chrisb</groupId>
<artifactId>ecoCreature</artifactId>
<name>ecoCreature</name>
<version>0.3.2-SNAPSHOT</version>
<version>0.3.3-SNAPSHOT</version>
<description>Player vs. Monster/Enemy Rewards</description>
<url>http://dev.bukkit.org/server-mods/ecocreature/</url>
<inceptionYear>2011</inceptionYear>
Expand All @@ -16,7 +16,7 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<bukkit.version>1.9.4-R0.1-SNAPSHOT</bukkit.version>
<bukkit.version>1.10-R0.1-SNAPSHOT</bukkit.version>
<vault.version>1.5</vault.version>
<currentYear>2015</currentYear>
</properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@

import java.lang.reflect.Field;

import net.minecraft.server.v1_9_R2.NBTTagCompound;
import net.minecraft.server.v1_10_R1.NBTTagCompound;

import org.bukkit.craftbukkit.v1_9_R2.inventory.CraftItemStack;
import org.bukkit.craftbukkit.v1_10_R1.inventory.CraftItemStack;
import org.bukkit.inventory.ItemStack;

public final class ItemUtils
Expand Down Expand Up @@ -60,7 +60,7 @@ private static NBTTagCompound getTag(ItemStack item)
try {
Field field = CraftItemStack.class.getDeclaredField("handle");
field.setAccessible(true);
return ((net.minecraft.server.v1_9_R2.ItemStack) field.get(item)).getTag();
return ((net.minecraft.server.v1_10_R1.ItemStack) field.get(item)).getTag();
}
catch (Exception ignored) {
}
Expand All @@ -72,11 +72,11 @@ private static ItemStack setTag(ItemStack item, NBTTagCompound tag)
{
CraftItemStack cItem = item instanceof CraftItemStack ? (CraftItemStack) item : CraftItemStack.asCraftCopy(item);

net.minecraft.server.v1_9_R2.ItemStack nmsItem = null;
net.minecraft.server.v1_10_R1.ItemStack nmsItem = null;
try {
Field field = CraftItemStack.class.getDeclaredField("handle");
field.setAccessible(true);
nmsItem = (net.minecraft.server.v1_9_R2.ItemStack) field.get(item);
nmsItem = (net.minecraft.server.v1_10_R1.ItemStack) field.get(item);
}
catch (Exception ignored) {
}
Expand Down

0 comments on commit 8696646

Please sign in to comment.