Fix MMOInventory comp

This commit is contained in:
Jules 2021-06-24 19:33:59 +02:00
parent 36c90b766e
commit 78e043c8b8
2 changed files with 15 additions and 0 deletions

View File

@ -402,6 +402,19 @@ public class MMOItems extends LuminePlugin {
return inventory;
}
/**
* The PlayerInventory interface lets MMOItems knows what items to look for
* in player inventories whe doing inventory updates. By default, it only
* checks held items + armor slots. However other plugins like MMOInv do
* implement custom slots and therefore must register a custom
* PlayerInventory instance that tells of additional items to look for.
*/
public void registerPlayerInventory(PlayerInventory value) {
// Registers in the Inventory Handler
getInventory().register(value);
}
/**
* The PlayerInventory interface lets MMOItems knows what items to look for
* in player inventories whe doing inventory updates. By default, it only

View File

@ -19,6 +19,8 @@ import org.jetbrains.annotations.Nullable;
/**
* That Gaussian spread distribution thing that no one understands.
*
* @author indyuce
*/
public class NumericStatFormula implements RandomStatData, UpdatableRandomStatData {
private final double base, scale, spread, maxSpread;