#1287: Fix scoreboards not updating in Player#setStatistic
By: Collin <collinjbarber@gmail.com>
This commit is contained in:
@@ -1054,12 +1054,12 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
||||
|
||||
@Override
|
||||
public void incrementStatistic(Statistic statistic) {
|
||||
CraftStatistic.incrementStatistic(getHandle().getStats(), statistic);
|
||||
CraftStatistic.incrementStatistic(getHandle().getStats(), statistic, getHandle());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void decrementStatistic(Statistic statistic) {
|
||||
CraftStatistic.decrementStatistic(getHandle().getStats(), statistic);
|
||||
CraftStatistic.decrementStatistic(getHandle().getStats(), statistic, getHandle());
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -1069,27 +1069,27 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
||||
|
||||
@Override
|
||||
public void incrementStatistic(Statistic statistic, int amount) {
|
||||
CraftStatistic.incrementStatistic(getHandle().getStats(), statistic, amount);
|
||||
CraftStatistic.incrementStatistic(getHandle().getStats(), statistic, amount, getHandle());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void decrementStatistic(Statistic statistic, int amount) {
|
||||
CraftStatistic.decrementStatistic(getHandle().getStats(), statistic, amount);
|
||||
CraftStatistic.decrementStatistic(getHandle().getStats(), statistic, amount, getHandle());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setStatistic(Statistic statistic, int newValue) {
|
||||
CraftStatistic.setStatistic(getHandle().getStats(), statistic, newValue);
|
||||
CraftStatistic.setStatistic(getHandle().getStats(), statistic, newValue, getHandle());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void incrementStatistic(Statistic statistic, Material material) {
|
||||
CraftStatistic.incrementStatistic(getHandle().getStats(), statistic, material);
|
||||
CraftStatistic.incrementStatistic(getHandle().getStats(), statistic, material, getHandle());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void decrementStatistic(Statistic statistic, Material material) {
|
||||
CraftStatistic.decrementStatistic(getHandle().getStats(), statistic, material);
|
||||
CraftStatistic.decrementStatistic(getHandle().getStats(), statistic, material, getHandle());
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -1099,27 +1099,27 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
||||
|
||||
@Override
|
||||
public void incrementStatistic(Statistic statistic, Material material, int amount) {
|
||||
CraftStatistic.incrementStatistic(getHandle().getStats(), statistic, material, amount);
|
||||
CraftStatistic.incrementStatistic(getHandle().getStats(), statistic, material, amount, getHandle());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void decrementStatistic(Statistic statistic, Material material, int amount) {
|
||||
CraftStatistic.decrementStatistic(getHandle().getStats(), statistic, material, amount);
|
||||
CraftStatistic.decrementStatistic(getHandle().getStats(), statistic, material, amount, getHandle());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setStatistic(Statistic statistic, Material material, int newValue) {
|
||||
CraftStatistic.setStatistic(getHandle().getStats(), statistic, material, newValue);
|
||||
CraftStatistic.setStatistic(getHandle().getStats(), statistic, material, newValue, getHandle());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void incrementStatistic(Statistic statistic, EntityType entityType) {
|
||||
CraftStatistic.incrementStatistic(getHandle().getStats(), statistic, entityType);
|
||||
CraftStatistic.incrementStatistic(getHandle().getStats(), statistic, entityType, getHandle());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void decrementStatistic(Statistic statistic, EntityType entityType) {
|
||||
CraftStatistic.decrementStatistic(getHandle().getStats(), statistic, entityType);
|
||||
CraftStatistic.decrementStatistic(getHandle().getStats(), statistic, entityType, getHandle());
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -1129,17 +1129,17 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
||||
|
||||
@Override
|
||||
public void incrementStatistic(Statistic statistic, EntityType entityType, int amount) {
|
||||
CraftStatistic.incrementStatistic(getHandle().getStats(), statistic, entityType, amount);
|
||||
CraftStatistic.incrementStatistic(getHandle().getStats(), statistic, entityType, amount, getHandle());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void decrementStatistic(Statistic statistic, EntityType entityType, int amount) {
|
||||
CraftStatistic.decrementStatistic(getHandle().getStats(), statistic, entityType, amount);
|
||||
CraftStatistic.decrementStatistic(getHandle().getStats(), statistic, entityType, amount, getHandle());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setStatistic(Statistic statistic, EntityType entityType, int newValue) {
|
||||
CraftStatistic.setStatistic(getHandle().getStats(), statistic, entityType, newValue);
|
||||
CraftStatistic.setStatistic(getHandle().getStats(), statistic, entityType, newValue, getHandle());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user