Null check
This commit is contained in:
@@ -142,7 +142,9 @@ public class VaultManager {
|
|||||||
// In this case, players will lose items.
|
// In this case, players will lose items.
|
||||||
if (deserialized.getContents().length > size) {
|
if (deserialized.getContents().length > size) {
|
||||||
for (ItemStack stack : deserialized.getContents()) {
|
for (ItemStack stack : deserialized.getContents()) {
|
||||||
inventory.addItem(stack);
|
if (stack != null) {
|
||||||
|
inventory.addItem(stack);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
inventory.setContents(deserialized.getContents());
|
inventory.setContents(deserialized.getContents());
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ economy:
|
|||||||
# Use material names. This does not work with ids.
|
# Use material names. This does not work with ids.
|
||||||
|
|
||||||
# Should we even use this? If left to false, the list won't do anything.
|
# Should we even use this? If left to false, the list won't do anything.
|
||||||
blockitems: false
|
blockitems: true
|
||||||
|
|
||||||
# Only effective if the above option is true.
|
# Only effective if the above option is true.
|
||||||
blocked-items:
|
blocked-items:
|
||||||
|
|||||||
Reference in New Issue
Block a user