Fixes issue where inventory is null.

This commit is contained in:
tastybento 2019-06-19 22:41:48 -07:00
parent 4b6ec575be
commit 9fd4f2422f

View File

@ -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;
}
/**