Commit 999c54fa authored by spacebuilder2020's avatar spacebuilder2020

Should fix #2257

parent 1e5c5e4c
......@@ -467,7 +467,7 @@ public class ModuleProtection
public static boolean canCraft(EntityPlayer player, ItemStack result)
{
if (result == null)
if (player == null || result == null)
return true;
String permission = ModuleProtection.getCraftingPermission(result);
debugPermission(player, permission);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment