geforkt von Mirrors/Paper
Fix CraftInventoryMerchant#getSelectedRecipe if there is no active merchant recipe.
By: blablubbabc <lukas@wirsindwir.de>
Dieser Commit ist enthalten in:
Ursprung
961fc0efe5
Commit
4d93e94dbd
@ -17,7 +17,8 @@ public class CraftInventoryMerchant extends CraftInventory implements MerchantIn
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public MerchantRecipe getSelectedRecipe() {
|
public MerchantRecipe getSelectedRecipe() {
|
||||||
return getInventory().getRecipe().asBukkit();
|
net.minecraft.server.MerchantRecipe nmsRecipe = getInventory().getRecipe();
|
||||||
|
return (nmsRecipe == null) ? null : nmsRecipe.asBukkit();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren