Compare commits

..
3 Commits
Author SHA1 Message Date
miozune 564f86141e Fix server calling I18n with Ritual Diviner (#35) 2022-10-15 11:35:28 +02:00
ChromicRedBrickandKiwi 722110867b Remove outdated key (#34)
Also fix description

Co-Authored-By: Kiwi <[email protected]>

Co-authored-by: Kiwi <[email protected]>
2022-10-04 16:54:46 +02:00
miozune d0be7d5e25 Fix NPE with matchItem (#33) 2022-09-28 19:12:51 +02:00
6 changed files with 4 additions and 8 deletions

No files matched your search

@@ -129,6 +129,7 @@ public class NEIMeteorRecipeHandler extends TemplateRecipeHandler {
}
private boolean matchItem(ItemStack compared, ItemStack compareTo) {
if (compared == null || compareTo == null) return false;
if (NEIServerUtils.areStacksSameTypeCrafting(compared, compareTo)) {
return true;
}
@@ -4,7 +4,6 @@ import java.util.List;
import net.minecraft.block.Block;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.client.resources.I18n;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
@@ -159,7 +158,7 @@ public class ItemRitualDiviner extends EnergyItems implements IRitualDiviner
{
return super.getItemStackDisplayName(stack);
}
return I18n.format("bm.string.ritualDiviner", Rituals.getLocalizedNameOfRitual(ritualID));
return StatCollector.translateToLocalFormatted("bm.string.ritualDiviner", Rituals.getLocalizedNameOfRitual(ritualID));
} else
{
return super.getItemStackDisplayName(stack);
@@ -369,8 +369,6 @@ commands.bind.remove.success=Unbinding successful
commands.orb.usage=/bloodmagic orb [set|get] player [tier]
commands.orb.help=Used to set or get the Player's max Blood Orb tier.
commands.bind.usage=/bind <player>
commands.bind.success=Item successfully bound!
commands.bind.failed.noPlayer=There is no player specified
commands.bind.failed.alreadyBound=Item is already bound; use /unbind to unbind it
commands.bind.failed.notBindable=Item cannot be bound
@@ -277,7 +277,7 @@ entity.AWWayofTime.MinorDemonGrunt.name=Демон Грунт
#Commands
commands.soulnetwork.usage=/soulnetwork <игрок>
commands.bind.usage=/bind <игрок>
commands.bind.usage=/bloodmagic bind [true|false] <игрок>
commands.bind.success=Предмет успешно привязан!
commands.bind.failed.noPlayer=Игрок не выбран
commands.bind.failed.alreadyBound=Предмет уже привязан; используйте /unbind для отвязки
@@ -369,8 +369,6 @@ commands.bind.remove.success=解绑成功
commands.orb.usage=/bloodmagic orb [set|get] player [等级]
commands.orb.help=用来设定或获取指定玩家的最高等级气血宝珠.
commands.bind.usage=/bind <玩家>
commands.bind.success=物品成功绑定!
commands.bind.failed.noPlayer=没有指定玩家
commands.bind.failed.alreadyBound=物品已经被绑定; 使用 /unbind 来解除绑定
commands.bind.failed.notBindable=物品无法被绑定
@@ -284,7 +284,7 @@ entity.AWWayofTime.MinorDemonGrunt.name=格倫魔
#Commands
commands.soulnetwork.usage=/soulnetwork <玩家>
commands.bind.usage=/bind <玩家>
commands.bind.usage=/bloodmagic bind [true|false] <玩家>
commands.bind.success=物品成功綁定!
commands.bind.failed.noPlayer=沒有指定玩家
commands.bind.failed.alreadyBound=物品已經被綁定; 使用 /unbind 來解除綁定