Commit 95c8aba4 by Jonathan Thomas

Fixed entities from despawning after creating a character sheet.

parent 3cbbf26c
Pipeline #12712 passed with stages
in 2 minutes 28 seconds
......@@ -15,6 +15,9 @@ All notable changes to **CreatureChat** are documented in this file. The format
- Updated unit tests to add new LEAD tests
- Updated README.md to include HTML inside spoiler instructions, and whitelist/blacklist commands
### Fixed
- Entity persistence is now fixed (after creating a character sheet). No more despawning mobs.
## [1.0.8] - 2024-07-16
### Added
......
......@@ -315,6 +315,7 @@ public class ServerPackets {
LOGGER.debug("Setting entity name to " + characterName + " for " + chatData.entityId);
entity.setCustomName(Text.literal(characterName));
entity.setCustomNameVisible(true);
entity.setPersistent();
}
PacketByteBuf buffer = new PacketByteBuf(Unpooled.buffer());
......
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