Sweeping changes, mainly NBT related
This commit is contained in:
parent
4035d91151
commit
c8996c8fba
157 changed files with 622 additions and 623 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue