mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-13 16:54:06 +00:00
Fixed a crash with The Spectator and the Helpful Villagers mod. Closes #420 (blaze it)
This commit is contained in:
1 parent
5bbc68ceda
commit
f48ee2858b
1 file changed
+2
-2
@@ -150,9 +150,9 @@ public class ItemItemFinder extends ItemBauble implements IBaubleRender {
|
||||
} else if(e instanceof EntityVillager) {
|
||||
EntityVillager villager = (EntityVillager) e;
|
||||
ArrayList<MerchantRecipe> recipes = villager.getRecipes(player);
|
||||
if(pstack != null)
|
||||
if(pstack != null && recipes != null)
|
||||
for(MerchantRecipe recipe : recipes)
|
||||
if(!recipe.isRecipeDisabled() && (equalStacks(pstack, recipe.getItemToBuy()) || equalStacks(pstack, recipe.getItemToSell())))
|
||||
if(recipe != null && !recipe.isRecipeDisabled() && (equalStacks(pstack, recipe.getItemToBuy()) || equalStacks(pstack, recipe.getItemToSell())))
|
||||
positionsBuilder.append(villager.getEntityId()).append(";");
|
||||
|
||||
} else if(e instanceof EntityLivingBase) {
|
||||
|
||||
Reference in new issue
Block a user