Skip to content

Commit

Permalink
Get item name from grower for setting sown count
Browse files Browse the repository at this point in the history
  • Loading branch information
AntumDeluge committed Nov 9, 2023
1 parent 7a1834f commit 345c04d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/games/stendhal/server/entity/item/Seed.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public boolean onUsed(final RPEntity user) {
this.removeOne();
if (user instanceof Player) {
// XXX: should this increment only after flower grower has fully ripened?
((Player) user).incSownForItem(itemdata, 1);
((Player) user).incSownForItem(flowerGrower.getItemName(), 1);
}
return true;
}
Expand Down

0 comments on commit 345c04d

Please sign in to comment.