Skip to content

Fix ProjectRed Crafting Chip with no output item can cause NPE - #91

Open
jonas205 wants to merge 1 commit into
GTNewHorizons:masterfrom
jonas205:master
Open

Fix ProjectRed Crafting Chip with no output item can cause NPE#91
jonas205 wants to merge 1 commit into
GTNewHorizons:masterfrom
jonas205:master

Conversation

@jonas205

Copy link
Copy Markdown

Summary

When a crafting chip has no output item ChipCrafting.getCraftedItem returns null, which is supported on all callers but ChipCrafting.registerExcess. This causes a NPE leading to a server crash when a stock keeper chip requests an item in the same network

fixes GTNewHorizons/GT-New-Horizons-Modpack#23881
fixes GTNewHorizons/GT-New-Horizons-Modpack#22401

Checklist

  • I have tested this PR in DevEnv
  • I have tested this PR in Fullpack
  • This PR is in compliance with the GTNH AI Policy
  • This PR requires another PR in order to merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant