mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-15 23:35:14 +01:00
Minor refactor to prevent int to Integer warning.
This commit is contained in:
parent
8d9a2597a0
commit
511b613324
@ -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) {
|
||||
|
@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user