Skip to content

Commit

Permalink
fixed name for dropNut function (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sara424242 authored Sep 27, 2024
1 parent 41e0cd7 commit 952d2b1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public void collectNut() {
* when Totoro has no nuts
*/
@InspectionMethod()
public void dropCoin() {
public void dropNut() {
if (!this.canDropNut()) throw new TotoroIsHungryException();
this.drop(this.getCurrentlyDroppableEntities(Nut.class, true).get(0));
}
Expand Down

0 comments on commit 952d2b1

Please sign in to comment.