Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 12:30:06 +01:00
SPIGOT-4717: Fix adding recipes after clearRecipes is called
Dieser Commit ist enthalten in:
Ursprung
5fea790398
Commit
0ec9b61de9
@ -59,7 +59,7 @@
|
||||
}
|
||||
|
||||
- private static void a(Map<Recipes<?>, Map<MinecraftKey, IRecipe<?>>> map) {
|
||||
+ private static void a(Map<Recipes<?>, it.unimi.dsi.fastutil.objects.Object2ObjectLinkedOpenHashMap<MinecraftKey, IRecipe<?>>> map) { // CraftBukkit
|
||||
+ public static void a(Map<Recipes<?>, it.unimi.dsi.fastutil.objects.Object2ObjectLinkedOpenHashMap<MinecraftKey, IRecipe<?>>> map) { // CraftBukkit
|
||||
map.clear();
|
||||
Iterator iterator = IRegistry.RECIPE_TYPE.iterator();
|
||||
|
||||
|
@ -49,6 +49,7 @@ import net.minecraft.server.BlockPosition;
|
||||
import net.minecraft.server.BossBattleCustom;
|
||||
import net.minecraft.server.CommandDispatcher;
|
||||
import net.minecraft.server.CommandListenerWrapper;
|
||||
import net.minecraft.server.CraftingManager;
|
||||
import net.minecraft.server.DedicatedPlayerList;
|
||||
import net.minecraft.server.DedicatedServer;
|
||||
import net.minecraft.server.DedicatedServerProperties;
|
||||
@ -1096,7 +1097,7 @@ public final class CraftServer implements Server {
|
||||
|
||||
@Override
|
||||
public void clearRecipes() {
|
||||
console.getCraftingManager().recipes.clear();
|
||||
CraftingManager.a(console.getCraftingManager().recipes);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren