Fix NPE with 1.12 crafting

This commit is contained in:
Electroid 2017-07-06 18:12:10 -07:00
parent 84fbd5ad7a
commit 5853012653
1 changed files with 2 additions and 0 deletions

View File

@ -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();