diff --git a/src/main/java/world/bentobox/bentobox/blueprints/dataobjects/BlueprintEntity.java b/src/main/java/world/bentobox/bentobox/blueprints/dataobjects/BlueprintEntity.java index 6a5927ddb..a06c11932 100644 --- a/src/main/java/world/bentobox/bentobox/blueprints/dataobjects/BlueprintEntity.java +++ b/src/main/java/world/bentobox/bentobox/blueprints/dataobjects/BlueprintEntity.java @@ -78,7 +78,8 @@ public class BlueprintEntity { if (e instanceof AbstractHorse horse) { if (domestication != null) horse.setDomestication(domestication); if (inventory != null) { - inventory.forEach(horse.getInventory()::setItem); + inventory.forEach((index, item) -> horse.getInventory().setItem(index.intValue(), item)); + } } if (style != null && e instanceof Horse horse) { diff --git a/src/main/java/world/bentobox/bentobox/database/objects/Players.java b/src/main/java/world/bentobox/bentobox/database/objects/Players.java index 5e64c9f5d..3cf06d2c0 100644 --- a/src/main/java/world/bentobox/bentobox/database/objects/Players.java +++ b/src/main/java/world/bentobox/bentobox/database/objects/Players.java @@ -298,7 +298,7 @@ public class Players implements DataObject, MetaDataAble { * @param world - world */ public void addReset(World world) { - resets.merge(world.getName(), 1, Integer::sum); + resets.merge(world.getName(), 1, (oldValue, newValue) -> Integer.valueOf(oldValue + newValue)); } /**