Skip to content

Commit

Permalink
Update patches
Browse files Browse the repository at this point in the history
  • Loading branch information
coehlrich committed Aug 28, 2024
1 parent 3cc5b32 commit 4e48f5b
Show file tree
Hide file tree
Showing 13 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- a/net/minecraft/client/Minecraft.java
+++ b/net/minecraft/client/Minecraft.java
@@ -2299,7 +2299,7 @@
@@ -2308,7 +2308,7 @@
}

public CompletableFuture<Void> delayTextureReload() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- a/net/minecraft/client/gui/screens/worldselection/WorldCreationUiState.java
+++ b/net/minecraft/client/gui/screens/worldselection/WorldCreationUiState.java
@@ -299,7 +299,7 @@
@@ -298,7 +298,7 @@
public Component describePreset() {
return Optional.ofNullable(this.preset)
.flatMap(Holder::unwrapKey)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- a/net/minecraft/client/Minecraft.java
+++ b/net/minecraft/client/Minecraft.java
@@ -2302,7 +2302,7 @@
@@ -2311,7 +2311,7 @@
}

public CompletableFuture<Void> delayTextureReload() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- a/net/minecraft/client/gui/screens/worldselection/WorldCreationUiState.java
+++ b/net/minecraft/client/gui/screens/worldselection/WorldCreationUiState.java
@@ -304,7 +304,7 @@
@@ -303,7 +303,7 @@
public Component describePreset() {
return Optional.ofNullable(this.preset)
.flatMap(Holder::unwrapKey)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- a/net/minecraft/advancements/critereon/EntitySubPredicates.java
+++ b/net/minecraft/advancements/critereon/EntitySubPredicates.java
@@ -175,7 +175,7 @@
@@ -176,7 +176,7 @@
this.getter = p_336167_;
this.codec = RecordCodecBuilder.mapCodec(
p_335436_ -> p_335436_.group(RegistryCodecs.homogeneousList(p_336141_).fieldOf("variant").forGetter(p_335992_ -> p_335992_.variants))
Expand All @@ -9,7 +9,7 @@
);
}

@@ -218,7 +218,7 @@
@@ -219,7 +219,7 @@
this.getter = p_333805_;
this.codec = RecordCodecBuilder.mapCodec(
p_333719_ -> p_333719_.group(p_333738_.fieldOf("variant").forGetter(p_333753_ -> p_333753_.variant))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
--- a/net/minecraft/core/Registry.java
+++ b/net/minecraft/core/Registry.java
@@ -152,7 +152,7 @@
Optional<HolderSet.Named<T>> getTag(TagKey<T> p_206052_);
@@ -141,7 +141,7 @@
Holder<T> wrapAsHolder(T p_263382_);

default Iterable<Holder<T>> getTagOrEmpty(TagKey<T> p_206059_) {
- return DataFixUtils.orElse(this.getTag(p_206059_), List.<T>of());
+ return DataFixUtils.orElse(this.getTag(p_206059_), List.of());
- return DataFixUtils.orElse(this.get(p_206059_), List.<T>of());
+ return DataFixUtils.orElse(this.get(p_206059_), List.of());
}

default Optional<Holder<T>> getRandomElementOf(TagKey<T> p_320357_, RandomSource p_320935_) {
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- a/net/minecraft/core/RegistrySetBuilder.java
+++ b/net/minecraft/core/RegistrySetBuilder.java
@@ -422,13 +422,13 @@
@@ -421,13 +421,13 @@

<T> Holder.Reference<T> getOrCreate(ResourceKey<T> p_256298_) {
return (Holder.Reference<T>)this.holders
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
+ int i = ((Registry<Registry<T>>)BuiltInRegistries.REGISTRY).getId(p_124059_);
jsonobject.addProperty("protocol_id", i);
JsonObject jsonobject1 = new JsonObject();
p_124059_.holders().forEach(p_211092_ -> {
p_124059_.listElements().forEach(p_211092_ -> {
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- a/net/minecraft/resources/RegistryDataLoader.java
+++ b/net/minecraft/resources/RegistryDataLoader.java
@@ -73,7 +73,7 @@
@@ -74,7 +74,7 @@

public class RegistryDataLoader {
private static final Logger LOGGER = LogUtils.getLogger();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- a/net/minecraft/server/MinecraftServer.java
+++ b/net/minecraft/server/MinecraftServer.java
@@ -873,7 +873,7 @@
@@ -872,7 +872,7 @@
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- a/net/minecraft/util/datafix/DataFixers.java
+++ b/net/minecraft/util/datafix/DataFixers.java
@@ -1090,7 +1090,7 @@
@@ -1091,7 +1091,7 @@
Schema schema161 = p_14514_.addSchema(3086, SAME_NAMESPACED);
p_14514_.addFixer(
new EntityVariantFix(
Expand All @@ -9,7 +9,7 @@
p_216528_.defaultReturnValue("minecraft:tabby");
p_216528_.put(0, "minecraft:tabby");
p_216528_.put(1, "minecraft:black");
@@ -1130,7 +1130,7 @@
@@ -1131,7 +1131,7 @@
Schema schema162 = p_14514_.addSchema(3087, SAME_NAMESPACED);
p_14514_.addFixer(
new EntityVariantFix(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- a/net/minecraft/world/entity/Entity.java
+++ b/net/minecraft/world/entity/Entity.java
@@ -475,7 +475,7 @@
@@ -477,7 +477,7 @@

this.firstTick = false;
if (!this.level().isClientSide && this instanceof Leashable) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- a/net/minecraft/world/entity/animal/Sheep.java
+++ b/net/minecraft/world/entity/animal/Sheep.java
@@ -60,7 +60,7 @@
@@ -58,7 +58,7 @@
private static final int EAT_ANIMATION_TICKS = 40;
private static final EntityDataAccessor<Byte> DATA_WOOL_ID = SynchedEntityData.defineId(Sheep.class, EntityDataSerializers.BYTE);
private static final Map<DyeColor, Integer> COLOR_BY_DYE = Maps.newEnumMap(
Expand Down

0 comments on commit 4e48f5b

Please sign in to comment.