Skip to content

Commit

Permalink
Fixed #3507
Browse files Browse the repository at this point in the history
  • Loading branch information
Mgazul committed Feb 4, 2025
1 parent 4b547a2 commit d661885
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
}

public void m_44024_(Iterable<Recipe<?>> p_44025_) {
@@ -189,4 +_,58 @@
@@ -189,4 +_,60 @@
public interface CachedCheck<C extends Container, T extends Recipe<C>> {
Optional<T> m_213657_(C p_220280_, Level p_220281_);
}
Expand Down Expand Up @@ -158,7 +158,9 @@
+ this.f_199900_ = new HashMap<>(f_199900_);
+ }
+ map0.putAndMoveToFirst(irecipe.m_6423_(), irecipe);
+ craftbukkit.putAndMoveToFirst(irecipe.m_6423_(), irecipe); // CraftBukkit - SPIGOT-4638: last recipe gets priority
+ if (craftbukkit != null) {
+ craftbukkit.putAndMoveToFirst(irecipe.m_6423_(), irecipe); // CraftBukkit - SPIGOT-4638: last recipe gets priority
+ }
+ this.f_199900_.put(irecipe.m_6423_(), irecipe);
+ }
+ }
Expand Down

0 comments on commit d661885

Please sign in to comment.