mirror of
https://github.com/PlayPro/CoreProtect.git
synced 2025-02-20 02:22:30 +01:00
Fixed NullPointerException while performing rollbacks
This commit is contained in:
parent
b9309482cf
commit
d7d53bf9e2
@ -349,8 +349,8 @@ public class Rollback extends Queue {
|
|||||||
clearInventories = true;
|
clearInventories = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
ArrayList<Object[]> data = finalBlockList.get(chunkKey);
|
ArrayList<Object[]> data = finalBlockList.getOrDefault(chunkKey, new ArrayList<>());
|
||||||
ArrayList<Object[]> itemData = finalItemList.get(chunkKey);
|
ArrayList<Object[]> itemData = finalItemList.getOrDefault(chunkKey, new ArrayList<>());
|
||||||
Map<Block, BlockData> chunkChanges = new LinkedHashMap<>();
|
Map<Block, BlockData> chunkChanges = new LinkedHashMap<>();
|
||||||
|
|
||||||
for (Object[] row : data) {
|
for (Object[] row : data) {
|
||||||
|
Loading…
Reference in New Issue
Block a user