Skip to content

Commit

Permalink
add null check (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyfts authored May 8, 2024
1 parent 064f7bf commit d580330
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ protected void tryLoadingMultiblock(ItemStack candidate) {
Block block = ib.field_150939_a;
if (block.hasTileEntity(candidate.getItemDamage())) {
TileEntity te = block.createTileEntity(DummyWorld.INSTANCE, ib.getMetadata(candidate.getItemDamage()));
if (IMultiblockInfoContainer.contains(te.getClass())) {
if (te != null && IMultiblockInfoContainer.contains(te.getClass())) {
baseHandler.setOnIngredientChanged(ingredients -> {
this.ingredients = ingredients;
resetPositionedIngredients();
Expand Down

0 comments on commit d580330

Please sign in to comment.