Skip to content

Commit

Permalink
Maybe fix #1080
Browse files Browse the repository at this point in the history
  • Loading branch information
IThundxr committed Feb 20, 2024
1 parent 6329c72 commit c926645
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ public void addStorageToWorld(BlockEntity be) {
// we need to remove whatever is in there to fill with our modified contents
TransferUtil.clearStorage(teHandler);
for (StorageView<ItemVariant> view : handler.nonEmptyIterable()) {
teHandler.insert(view.getResource(), view.getAmount(), t);
if (!view.getResource().isBlank() && view.getResource() != ItemVariant.blank())
teHandler.insert(view.getResource(), view.getAmount(), t);
}
t.commit();
}
Expand Down

0 comments on commit c926645

Please sign in to comment.