mirror of
https://github.com/PlayPro/CoreProtect.git
synced 2025-02-06 00:04:29 +01:00
Fixed NullPointerException when logging container transactions
This commit is contained in:
parent
45e1fee9ff
commit
718d7d7a80
@ -174,8 +174,9 @@ public final class InventoryChangeListener extends Queue implements Listener {
|
||||
|
||||
int chestId = getChestId(loggingChestId);
|
||||
if (chestId > 0) {
|
||||
if (ConfigHandler.forceContainer.get(loggingChestId) != null) {
|
||||
int forceSize = ConfigHandler.forceContainer.get(loggingChestId).size();
|
||||
List<ItemStack[]> forceList = ConfigHandler.forceContainer.get(loggingChestId);
|
||||
if (forceList != null) {
|
||||
int forceSize = forceList.size();
|
||||
List<ItemStack[]> list = ConfigHandler.oldContainer.get(loggingChestId);
|
||||
|
||||
if (list != null && list.size() <= forceSize) {
|
||||
|
Loading…
Reference in New Issue
Block a user