Fixed a crash with the Wand of the Forest when placing it in a block from a mod that does not sync NBT tags (eg. Blood Magic).

This commit is contained in:
Vasco Lavos committed 2014-05-20 21:17:48 +01:00
1 parent d710652217
commit efa8a2fbbf
1 file changed
+2 -2
@@ -156,11 +156,11 @@ public class ItemTwigWand extends Item16Colors {
}
public static int getColor1(ItemStack stack) {
return ItemNBTHelper.getInt(stack, TAG_COLOR1, 0xFFFFFF);
return ItemNBTHelper.getInt(stack, TAG_COLOR1, 0);
}
public static int getColor2(ItemStack stack) {
return ItemNBTHelper.getInt(stack, TAG_COLOR2, 0xFFFFFF);
return ItemNBTHelper.getInt(stack, TAG_COLOR2, 0);
}
}