Skip to content

Commit

Permalink
Update gradle wrapper and fix snails not consuming food.
Browse files Browse the repository at this point in the history
  • Loading branch information
LambdAurora committed Jul 3, 2021
1 parent 1194184 commit 5ea57e0
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,9 @@
- Items in a snail inventory are ordered by pages, which are associated to a chest.
- Snail inventory pages can be browsed via scrolling in the storage space.
- Added Snail Spawn Egg.

### 1.0.1

- Added French translations.
- Added Simplified Chinese translations ([#2](https://github.com/LambdAurora/lovely_snails/pull/2)).
- Fixed food not being consumed by snails.
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
2 changes: 1 addition & 1 deletion gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ case "`uname`" in
Darwin* )
darwin=true
;;
MINGW* )
MSYS* | MINGW* )
msys=true
;;
NONSTOP* )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,7 @@ public ActionResult interactMob(PlayerEntity player, Hand hand) {
} else if (this.canInteract() && this.getOwner() == player) {
boolean likeItem = handStack.isIn(LovelySnailsRegistry.SNAIL_FOOD_ITEMS);
if (handStack.isEmpty() || likeItem) {
if (likeItem) this.eat(player, hand, handStack);
// What about petting a snail?
if (!this.world.isClient())
this.satisfies(likeItem ? 20 : 10);
Expand All @@ -553,6 +554,7 @@ public ActionResult interactMob(PlayerEntity player, Hand hand) {
// Watch me break one of Jeb's rule.
// Also why the fuck would you give a poisonous potato to a snail?
if (!this.world.isClient()) {
this.eat(player, hand, handStack);
this.setSatisfaction(this.getSatisfaction() - 4000);
this.putInteractionOnCooldown();

Expand Down

0 comments on commit 5ea57e0

Please sign in to comment.