Fixed NullPointerException when processing hopper transactions
This commit is contained in:
parent
4b056d9474
commit
606c043bf0
1 changed files with 1 additions and 1 deletions
|
|
@ -122,7 +122,7 @@ public final class InventoryChangeListener extends Queue implements Listener {
|
|||
ConfigHandler.forceContainer.computeIfAbsent(loggingChestIdViewer, k -> new ArrayList<>());
|
||||
List<ItemStack[]> list = ConfigHandler.forceContainer.get(loggingChestIdViewer);
|
||||
|
||||
if (list.size() < sizeOld) {
|
||||
if (list != null && list.size() < sizeOld) {
|
||||
ItemStack[] containerState = Util.getContainerState(inventoryData);
|
||||
|
||||
// If items have been removed by a hopper, merge into containerState
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue