forked from Upstream/mmocore
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
e8fe24ba73
@ -130,7 +130,7 @@ public abstract class InventoryItem<T extends GeneratedInventory> {
|
||||
}
|
||||
|
||||
public ItemStack display(T inv) {
|
||||
return display(inv, 0);
|
||||
return display(inv, modelData);
|
||||
}
|
||||
|
||||
public ItemStack display(T inv, int n) {
|
||||
@ -138,7 +138,7 @@ public abstract class InventoryItem<T extends GeneratedInventory> {
|
||||
}
|
||||
|
||||
public ItemStack display(T inv, int n, Material specificMaterial) {
|
||||
return display(inv, n, specificMaterial, 0);
|
||||
return display(inv, n, specificMaterial, modelData);
|
||||
}
|
||||
|
||||
public ItemStack display(T inv, int n, Material specificMaterial, int modelData) {
|
||||
|
@ -124,7 +124,7 @@ public class MMOCoreDataSynchronizer extends DataSynchronizer {
|
||||
*/
|
||||
data.setMana(result.getDouble("mana"));
|
||||
data.setStamina(result.getDouble("stamina"));
|
||||
data.setStellium(result.getDouble("stamina"));
|
||||
data.setStellium(result.getDouble("stellium"));
|
||||
double health = result.getDouble("health");
|
||||
health = health == 0 ? data.getPlayer().getAttribute(Attribute.GENERIC_MAX_HEALTH).getValue() : health;
|
||||
health = Math.max(Math.min(health, data.getPlayer().getAttribute(Attribute.GENERIC_MAX_HEALTH).getValue()), 0);
|
||||
|
Loading…
Reference in New Issue
Block a user