Fix NPE with 1.12 crafting
This commit is contained in:
parent
84fbd5ad7a
commit
5853012653
|
@ -187,6 +187,8 @@ public class WoolMatchModule extends MatchModule implements Listener {
|
|||
|
||||
@EventHandler
|
||||
public void handleWoolCrafting(PrepareItemCraftEvent event) {
|
||||
if(event.getRecipe() == null) return;
|
||||
|
||||
ItemStack result = event.getRecipe().getResult();
|
||||
InventoryHolder holder = event.getInventory().getHolder();
|
||||
|
||||
|
|
Loading…
Reference in New Issue