Sweeping changes, mainly NBT related

This commit is contained in:
Nicholas Ignoffo 2019-09-23 09:51:22 -07:00
parent 4035d91151
commit c8996c8fba
157 changed files with 622 additions and 623 deletions

View file

@ -88,7 +88,7 @@ public class BMPotionUtils {
NBTHelper.checkNBT(flaskStack);
CompoundNBT tag = flaskStack.getTagCompound();
tag.setDouble(Constants.NBT.POTION_AUGMENT_LENGHT + potion.getName(), value);
tag.putDouble(Constants.NBT.POTION_AUGMENT_LENGHT + potion.getName(), value);
}
public static int getAugmentedLength(int originalLength, double lengthAugment, double powerAugment) {
@ -113,7 +113,7 @@ public class BMPotionUtils {
nbttaglist.appendTag(potioneffect.writeCustomPotionEffectToNBT(new CompoundNBT()));
}
nbttagcompound.setTag("CustomPotionEffects", nbttaglist);
nbttagcompound.putTag("CustomPotionEffects", nbttaglist);
stack.setTagCompound(nbttagcompound);
return stack;
}

View file

@ -49,7 +49,7 @@ public class PotionBloodMagic extends Effect {
@Override
@SideOnly(Side.CLIENT)
public int getStatusIconIndex() {
Minecraft.getMinecraft().renderEngine.bindTexture(texture);
Minecraft.getInstance().renderEngine.bindTexture(texture);
return super.getStatusIconIndex();
}