Skip to content

Commit

Permalink
Fix crash when penguins decide to leave a boat.
Browse files Browse the repository at this point in the history
  • Loading branch information
MerchantPug committed Jan 1, 2024
1 parent de2bcb8 commit deedc43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
12 changes: 1 addition & 11 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,2 @@
### Minor Changes
- Already hooked boats now require a player to sneak to link more boats.

### Bugfixes
- Fixed water animations not being stopped upon exiting water.
- Fixed crash that happens when a penguin has a boat to follow.
- Fixed boats being able to be sunk underwater with a boat hook.
- Fixed an infinite height exploit involving a boat hook.
- Fixed boat hook item not dropping upon breaking a boat when attached to a player.
- Fixed penguins barely moving on ice.
- Fixed cough.ogg being stereo.
- Replaced say1.ogg with a non corrupt file.
- Fixed crash when penguins decide to leave a boat.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ protected void start(Penguin penguin) {
@Override
protected void stop(Penguin penguin) {
this.leavingBoatPos = null;
if (penguin.distanceTo(penguin.getBoatToFollow()) >= 64.0) {
if (penguin.position().distanceTo(this.leavingBoatPos) >= 64.0) {
penguin.returnToHome();
}
}
Expand Down

0 comments on commit deedc43

Please sign in to comment.