mirror of
https://github.com/GTNewHorizons/gendustry.git
synced 2026-11-28 07:55:39 +00:00
Fixed NPE in Sample/Template smelting recipe in NEI
This commit is contained in:
1 parent
68541ed023
commit
55d499cfb1
1 file changed
+1
-1
@@ -21,7 +21,7 @@ class SmeltingTooltipHandler extends IContainerTooltipHandler {
|
||||
override def handleItemDisplayName(gui: GuiContainer, itemstack: ItemStack, currenttip: util.List[String]) = currenttip
|
||||
override def handleTooltip(gui: GuiContainer, mousex: Int, mousey: Int, currenttip: util.List[String]) = currenttip
|
||||
override def handleItemTooltip(gui: GuiContainer, itemstack: ItemStack, mousex: Int, mousey: Int, currenttip: util.List[String]) = {
|
||||
if (gui.isInstanceOf[GuiRecipe]) {
|
||||
if (gui.isInstanceOf[GuiRecipe] && itemstack != null) {
|
||||
val gr = gui.asInstanceOf[GuiRecipe]
|
||||
val handler = gr.currenthandlers.get(gr.recipetype)
|
||||
if (handler.isInstanceOf[FurnaceRecipeHandler]) {
|
||||
|
||||
Reference in new issue
Block a user