From b75e8d5824f1aa8e63b6e88d26923f7b9d15a243 Mon Sep 17 00:00:00 2001 From: yueh Date: Sun, 29 Mar 2015 15:51:22 +0200 Subject: [PATCH] Fixes NEI recipe handler .get() is used as it is safe to assert facades are present at this point. If not there should be an exception being thrown. --- .../integration/modules/NEIHelpers/NEIFacadeRecipeHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/appeng/integration/modules/NEIHelpers/NEIFacadeRecipeHandler.java b/src/main/java/appeng/integration/modules/NEIHelpers/NEIFacadeRecipeHandler.java index c55386a6..7f32f7d4 100644 --- a/src/main/java/appeng/integration/modules/NEIHelpers/NEIFacadeRecipeHandler.java +++ b/src/main/java/appeng/integration/modules/NEIHelpers/NEIFacadeRecipeHandler.java @@ -53,7 +53,7 @@ public class NEIFacadeRecipeHandler extends TemplateRecipeHandler { final IDefinitions definitions = AEApi.instance().definitions(); - this.facade = (ItemFacade) definitions.items().facade(); + this.facade = (ItemFacade) definitions.items().facade().maybeItem().get(); this.anchorDefinition = definitions.parts().cableAnchor(); }