geforkt von Mirrors/Paper
Fix custom potion mixes patch
Dieser Commit ist enthalten in:
Ursprung
6f010858de
Commit
c730cdcecf
@ -31,6 +31,18 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ return CraftRecipe.toIngredient(choice, true);
|
+ return CraftRecipe.toIngredient(choice, true);
|
||||||
+ }
|
+ }
|
||||||
+}
|
+}
|
||||||
|
diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java
|
||||||
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||||
|
--- a/src/main/java/net/minecraft/server/MinecraftServer.java
|
||||||
|
+++ b/src/main/java/net/minecraft/server/MinecraftServer.java
|
||||||
|
@@ -0,0 +0,0 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop<TickTa
|
||||||
|
|
||||||
|
this.worldData.setDataConfiguration(worlddataconfiguration);
|
||||||
|
this.resources.managers.updateRegistryTags(this.registryAccess());
|
||||||
|
+ net.minecraft.world.item.alchemy.PotionBrewing.reload(); // Paper
|
||||||
|
// Paper start
|
||||||
|
if (Thread.currentThread() != this.serverThread) {
|
||||||
|
return;
|
||||||
diff --git a/src/main/java/net/minecraft/world/inventory/BrewingStandMenu.java b/src/main/java/net/minecraft/world/inventory/BrewingStandMenu.java
|
diff --git a/src/main/java/net/minecraft/world/inventory/BrewingStandMenu.java b/src/main/java/net/minecraft/world/inventory/BrewingStandMenu.java
|
||||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||||
--- a/src/main/java/net/minecraft/world/inventory/BrewingStandMenu.java
|
--- a/src/main/java/net/minecraft/world/inventory/BrewingStandMenu.java
|
||||||
@ -207,3 +219,29 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
Ingredient stack;
|
Ingredient stack;
|
||||||
|
|
||||||
if (bukkit == null) {
|
if (bukkit == null) {
|
||||||
|
diff --git a/src/main/java/org/bukkit/craftbukkit/potion/CraftPotionBrewer.java b/src/main/java/org/bukkit/craftbukkit/potion/CraftPotionBrewer.java
|
||||||
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||||
|
--- a/src/main/java/org/bukkit/craftbukkit/potion/CraftPotionBrewer.java
|
||||||
|
+++ b/src/main/java/org/bukkit/craftbukkit/potion/CraftPotionBrewer.java
|
||||||
|
@@ -0,0 +0,0 @@ public class CraftPotionBrewer implements PotionBrewer {
|
||||||
|
public PotionEffect createEffect(PotionEffectType potion, int duration, int amplifier) {
|
||||||
|
return new PotionEffect(potion, potion.isInstant() ? 1 : (int) (duration * potion.getDurationModifier()), amplifier);
|
||||||
|
}
|
||||||
|
+
|
||||||
|
+ // Paper start
|
||||||
|
+ @Override
|
||||||
|
+ public void addPotionMix(io.papermc.paper.potion.PotionMix potionMix) {
|
||||||
|
+ net.minecraft.world.item.alchemy.PotionBrewing.addPotionMix(potionMix);
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ @Override
|
||||||
|
+ public void removePotionMix(org.bukkit.NamespacedKey key) {
|
||||||
|
+ net.minecraft.world.item.alchemy.PotionBrewing.removePotionMix(key);
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ @Override
|
||||||
|
+ public void resetPotionMixes() {
|
||||||
|
+ net.minecraft.world.item.alchemy.PotionBrewing.reload();
|
||||||
|
+ }
|
||||||
|
+ // Paper end
|
||||||
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren