diff --git a/CHANGELOG.md b/CHANGELOG.md index 3e6d19d..4ddbc9d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. \ No newline at end of file +- Fixed crash when penguins decide to leave a boat. \ No newline at end of file diff --git a/common/src/main/java/dev/greenhouseteam/rapscallionsandrockhoppers/entity/behaviour/LeaveBoat.java b/common/src/main/java/dev/greenhouseteam/rapscallionsandrockhoppers/entity/behaviour/LeaveBoat.java index eedf195..ded8eca 100644 --- a/common/src/main/java/dev/greenhouseteam/rapscallionsandrockhoppers/entity/behaviour/LeaveBoat.java +++ b/common/src/main/java/dev/greenhouseteam/rapscallionsandrockhoppers/entity/behaviour/LeaveBoat.java @@ -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(); } }