Null check
This commit is contained in:
@@ -142,8 +142,10 @@ public class VaultManager {
|
||||
// In this case, players will lose items.
|
||||
if (deserialized.getContents().length > size) {
|
||||
for (ItemStack stack : deserialized.getContents()) {
|
||||
if (stack != null) {
|
||||
inventory.addItem(stack);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
inventory.setContents(deserialized.getContents());
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ economy:
|
||||
# Use material names. This does not work with ids.
|
||||
|
||||
# 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.
|
||||
blocked-items:
|
||||
|
||||
Reference in New Issue
Block a user