Skip to content

Commit

Permalink
Merge pull request Mithion#1234 from DoomFruit/ArcaneDeconstructorFix
Browse files Browse the repository at this point in the history
Fix for issue Mithion#1199
  • Loading branch information
Mithion committed Sep 12, 2015
2 parents d57cec4 + 4e4e93a commit d2a5a9a
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,10 @@ public void updateEntity(){
}
}else{
if (current_deconstruction_time++ >= DECONSTRUCTION_TIME){
for (ItemStack stack : deconstructionRecipe){
transferOrEjectItem(stack);
if(getDeconstructionRecipe() == true){
for (ItemStack stack : deconstructionRecipe){
transferOrEjectItem(stack);
}
}
deconstructionRecipe = null;
decrStackSize(0, 1);
Expand Down Expand Up @@ -200,7 +202,7 @@ private boolean getDeconstructionRecipe(){

for (Object o : recipeParts){
ItemStack stack = objectToItemStack(o);
if (stack != null){
if (stack != null && !stack.getItem().hasContainerItem(stack)){
stack.stackSize = 1;
recipeItems.add(stack.copy());
}
Expand Down

0 comments on commit d2a5a9a

Please sign in to comment.