mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 03:39:17 +00:00
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:
1 parent
8e5a75690b
commit
20dfc41f85
1 file changed
+1
-1
+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;
|
||||
|
||||
Reference in new issue
Block a user