Commit 77a516ab by Jonathan Thomas

Merge branch 'player-data-refactor' into 'develop'

Fix auto-generated messages above player's head

See merge request !19
parents 1ee5fbc1 8d445fa7
Pipeline #13218 passed with stages
in 4 minutes 20 seconds
...@@ -29,6 +29,7 @@ All notable changes to **CreatureChat** are documented in this file. The format ...@@ -29,6 +29,7 @@ All notable changes to **CreatureChat** are documented in this file. The format
### Fixed ### Fixed
- Fixed a regression caused by adding a "-forge" suffix to one of our builds - Fixed a regression caused by adding a "-forge" suffix to one of our builds
- Do not show auto-generated message above the player's head (you have arrived, show item, etc...)
## [1.1.0] - 2024-08-07 ## [1.1.0] - 2024-08-07
......
...@@ -97,7 +97,7 @@ public class LeadPlayerGoal extends PlayerBaseGoal { ...@@ -97,7 +97,7 @@ public class LeadPlayerGoal extends PlayerBaseGoal {
if (!this.entity.getNavigation().isFollowingPath()) { if (!this.entity.getNavigation().isFollowingPath()) {
Path path = this.entity.getNavigation().findPathTo(this.currentTarget.x, this.currentTarget.y, this.currentTarget.z, 1); Path path = this.entity.getNavigation().findPathTo(this.currentTarget.x, this.currentTarget.y, this.currentTarget.z, 1);
if (path != null) { if (path != null) {
LOGGER.info("Start moving along path"); LOGGER.debug("Start moving along path");
this.entity.getNavigation().startMovingAlong(path, this.speed); this.entity.getNavigation().startMovingAlong(path, this.speed);
} }
} }
......
...@@ -371,7 +371,7 @@ public class ServerPackets { ...@@ -371,7 +371,7 @@ public class ServerPackets {
// Write the entity's chat updated data // Write the entity's chat updated data
buffer.writeString(chatData.entityId); buffer.writeString(chatData.entityId);
if (sender != null) { if (sender != null && chatData.auto_generated == 0) {
buffer.writeString(sender.getUuidAsString()); buffer.writeString(sender.getUuidAsString());
buffer.writeString(sender.getDisplayName().getString()); buffer.writeString(sender.getDisplayName().getString());
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment