Fixed the Corporea Interceptor crashing the game if an invalid request is thrown. Closes Vazkii/VazkiiMod#1 (wrong repository for that bug to be reported but whatever >_>)

This commit is contained in:
Lizbeth Rika committed 2015-04-22 19:43:39 +01:00
1 parent 8e5a75690b
commit 20dfc41f85
1 file changed
+1 -1
@@ -68,7 +68,7 @@ public class TileCorporeaInterceptor extends TileCorporeaBase implements ICorpor
public boolean requestMatches(Object request, ItemStack filter) {
if(request instanceof ItemStack) {
ItemStack stack = (ItemStack) request;
return stack.isItemEqual(filter) && ItemStack.areItemStacksEqual(filter, stack);
return stack != null && stack.isItemEqual(filter) && ItemStack.areItemStacksEqual(filter, stack);
}
String name = (String) request;