mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-01-22 08:01:24 +01:00
Fixes issue where inventory is null.
This commit is contained in:
parent
4b6ec575be
commit
9fd4f2422f
@ -1,5 +1,6 @@
|
||||
package world.bentobox.bentobox.blueprints.dataobjects;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@ -58,7 +59,7 @@ public class BlueprintBlock {
|
||||
* @return the inventory
|
||||
*/
|
||||
public Map<Integer, ItemStack> getInventory() {
|
||||
return inventory;
|
||||
return inventory == null ? new HashMap<>() : inventory;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user