Fix spelling of 'incense'
This commit is contained in:
parent
2fc34a5138
commit
806f291d02
|
@ -19,7 +19,7 @@ public class NBTHolder {
|
|||
public static final String NBT_RUNNING = "isRunning";
|
||||
public static final String NBT_RUNTIME = "runtime";
|
||||
public static final String NBT_REAGENTTANK = "reagentTanks";
|
||||
public static final String NBT_CURRENT_INSENCE = "BM:CurrentInsence";
|
||||
public static final String NBT_CURRENT_INCENSE = "BM:CurrentIncense";
|
||||
public static final String NBT_ALTAR_TIER = "upgradeLevel";
|
||||
public static final String NBT_ALTAR_ACTIVE = "isActive";
|
||||
public static final String NBT_ALTAR_LIQUID_REQ = "liquidRequired";
|
||||
|
|
|
@ -7,8 +7,8 @@ import net.minecraft.nbt.NBTTagCompound;
|
|||
public class IncenseHelper {
|
||||
public static float getCurrentIncense(EntityPlayer player) {
|
||||
NBTTagCompound data = player.getEntityData();
|
||||
if (data.hasKey(NBTHolder.NBT_CURRENT_INSENCE)) {
|
||||
return data.getFloat(NBTHolder.NBT_CURRENT_INSENCE);
|
||||
if (data.hasKey(NBTHolder.NBT_CURRENT_INCENSE)) {
|
||||
return data.getFloat(NBTHolder.NBT_CURRENT_INCENSE);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
@ -16,6 +16,6 @@ public class IncenseHelper {
|
|||
|
||||
public static void setCurrentIncense(EntityPlayer player, float amount) {
|
||||
NBTTagCompound data = player.getEntityData();
|
||||
data.setFloat(NBTHolder.NBT_CURRENT_INSENCE, amount);
|
||||
data.setFloat(NBTHolder.NBT_CURRENT_INCENSE, amount);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue