mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-05 06:32:17 -07:00
Move patches to unapplied
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
--- a/net/minecraft/stats/StatsCounter.java
|
||||
+++ b/net/minecraft/stats/StatsCounter.java
|
||||
@@ -16,6 +16,12 @@
|
||||
public void increment(Player player, Stat<?> stat, int value) {
|
||||
int j = (int) Math.min((long) this.getValue(stat) + (long) value, 2147483647L);
|
||||
|
||||
+ // CraftBukkit start - fire Statistic events
|
||||
+ org.bukkit.event.Cancellable cancellable = org.bukkit.craftbukkit.event.CraftEventFactory.handleStatisticsIncrease(player, stat, this.getValue(stat), j);
|
||||
+ if (cancellable != null && cancellable.isCancelled()) {
|
||||
+ return;
|
||||
+ }
|
||||
+ // CraftBukkit end
|
||||
this.setValue(player, stat, j);
|
||||
}
|
||||
|
Reference in New Issue
Block a user