22 lines
1.1 KiB
Diff
22 lines
1.1 KiB
Diff
--- a/net/minecraft/stats/ServerStatisticManager.java
|
|
+++ b/net/minecraft/stats/ServerStatisticManager.java
|
|
@@ -1,3 +1,4 @@
|
|
+// mc-dev import
|
|
package net.minecraft.stats;
|
|
|
|
import com.google.common.collect.Sets;
|
|
@@ -53,11 +54,11 @@
|
|
private final File file;
|
|
private final Set<Statistic<?>> dirty = Sets.newHashSet();
|
|
|
|
- private static <T> Codec<Map<Statistic<?>, Integer>> createTypedStatsCodec(StatisticWrapper<T> statisticwrapper) {
|
|
+ private static <T> Codec<Map<Statistic<T>, Integer>> createTypedStatsCodec(StatisticWrapper<T> statisticwrapper) { // CraftBukkit - decompile error
|
|
Codec<T> codec = statisticwrapper.getRegistry().byNameCodec();
|
|
|
|
Objects.requireNonNull(statisticwrapper);
|
|
- Codec<Statistic<?>> codec1 = codec.flatComapMap(statisticwrapper::get, (statistic) -> {
|
|
+ Codec<Statistic<T>> codec1 = codec.flatComapMap(statisticwrapper::get, (statistic) -> { // CraftBukkit - decompile error
|
|
return statistic.getType() == statisticwrapper ? DataResult.success(statistic.getValue()) : DataResult.error(() -> {
|
|
String s = String.valueOf(statisticwrapper);
|
|
|