Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 12:30:06 +01:00
Fix CraftInventoryMerchant#getSelectedRecipe if there is no active merchant recipe.
Dieser Commit ist enthalten in:
Ursprung
c24abab787
Commit
14cd1688da
@ -17,7 +17,8 @@ public class CraftInventoryMerchant extends CraftInventory implements MerchantIn
|
||||
|
||||
@Override
|
||||
public MerchantRecipe getSelectedRecipe() {
|
||||
return getInventory().getRecipe().asBukkit();
|
||||
net.minecraft.server.MerchantRecipe nmsRecipe = getInventory().getRecipe();
|
||||
return (nmsRecipe == null) ? null : nmsRecipe.asBukkit();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren