Remap CraftBukkit to Mojang+Yarn Mappings
By: Initial Source <noreply+automated@papermc.io>
This commit is contained in:
parent
a265d64138
commit
30e4583dbe
1780 changed files with 44628 additions and 41274 deletions
|
@ -0,0 +1,26 @@
|
|||
--- 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 <T> Optional<Stat<T>> getStat(StatType<T> type, String id) {
|
||||
- Optional optional = Optional.ofNullable(ResourceLocation.tryParse(id));
|
||||
- Registry iregistry = type.getRegistry();
|
||||
+ // CraftBukkit - decompile error start
|
||||
+ Optional<ResourceLocation> optional = Optional.ofNullable(ResourceLocation.tryParse(id));
|
||||
+ Registry<T> 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) {
|
Loading…
Add table
Add a link
Reference in a new issue