mirror of
https://github.com/PlayPro/CoreProtect.git
synced 2024-11-28 12:55:34 +01:00
Fixed NullPointerException when processing hopper transactions
This commit is contained in:
parent
4b056d9474
commit
606c043bf0
@ -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…
Reference in New Issue
Block a user