A couple more nulls

This commit is contained in:
Vincent Lee committed 2017-01-16 14:29:16 -06:00
1 parent ec94aa640d
commit b04d6bbefa
8 files changed
+17 -21

No files matched your search

@@ -33,7 +33,7 @@ public interface IManaProficiencyArmor {
return false;
}
default boolean shouldGiveProficiency(ItemStack armorStack, EntityEquipmentSlot slot, EntityPlayer player, @Nullable ItemStack rod) {
default boolean shouldGiveProficiency(ItemStack armorStack, EntityEquipmentSlot slot, EntityPlayer player, ItemStack rod) {
return shouldGiveProficiency(armorStack, slot, player);
}
@@ -41,10 +41,10 @@ public interface IManaProficiencyArmor {
@Deprecated
public static boolean hasProficiency(EntityPlayer player) {
return hasProficiency(player, null);
return hasProficiency(player, ItemStack.EMPTY);
}
public static boolean hasProficiency(EntityPlayer player, @Nullable ItemStack rod) {
public static boolean hasProficiency(EntityPlayer player, ItemStack rod) {
boolean proficient = false;
for(EntityEquipmentSlot e: EntityEquipmentSlot.values()) {