ItemStack thermalPaddingLeggings = playerStats.extendedInventory.getStackInSlot(8);
ItemStack thermalPaddingBoots = playerStats.extendedInventory.getStackInSlot(9);
if (player.worldObj.provider instanceof IGalacticraftWorldProvider && !player.capabilities.isCreativeMode)
{
IGalacticraftWorldProvider provider = (IGalacticraftWorldProvider) player.worldObj.provider;
float thermalLevelMod = provider.getThermalLevelModifier();
if (thermalLevelMod != 0)
{
int thermalLevelCooldownBase = (int) Math.floor(1 / (thermalLevelMod * (thermalLevelMod > 0 ? 1 : -1)) * 200);
int thermalLevelTickCooldown = thermalLevelCooldownBase;