Skip to content

Commit

Permalink
Dont use named seeds in replanting. Fixes #3273
Browse files Browse the repository at this point in the history
  • Loading branch information
t00thpick1 committed Sep 1, 2017
1 parent 2d7c5d7 commit 4c3f3ee
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,9 @@ private void processGreenThumbPlants(BlockState blockState, boolean greenTerra)
return;
}

if (!playerInventory.contains(seed, 1)) {
ItemStack seedStack = new ItemStack(seed);

if (!playerInventory.containsAtLeast(seedStack, 1)) {
return;
}

Expand All @@ -315,7 +317,7 @@ private void processGreenThumbPlants(BlockState blockState, boolean greenTerra)
return;
}

playerInventory.removeItem(new ItemStack(seed));
playerInventory.removeItem(seedStack);
player.updateInventory(); // Needed until replacement available
new HerbalismBlockUpdaterTask(blockState).runTaskLater(mcMMO.p, 0);
}
Expand Down

0 comments on commit 4c3f3ee

Please sign in to comment.