--- a/net/minecraft/stats/ServerStatsCounter.java +++ b/net/minecraft/stats/ServerStatsCounter.java @@ -1,3 +1,4 @@ +// mc-dev import package net.minecraft.stats; import com.google.common.collect.Maps; @@ -158,13 +159,12 @@ } private Optional> getStat(StatType type, String id) { - Optional optional = Optional.ofNullable(ResourceLocation.tryParse(id)); - Registry iregistry = type.getRegistry(); + // CraftBukkit - decompile error start + Optional optional = Optional.ofNullable(ResourceLocation.tryParse(id)); + Registry iregistry = type.getRegistry(); - Objects.requireNonNull(iregistry); - optional = optional.flatMap(iregistry::getOptional); - Objects.requireNonNull(type); - return optional.map(type::get); + return optional.flatMap(iregistry::getOptional).map(type::get); + // CraftBukkit - decompile error end } private static CompoundTag fromJson(JsonObject json) {