Skip to content

[Bug] BetterModel throws errors related to Citizens during server shutdown #219

@yrexly

Description

@yrexly

I’m getting repeated exceptions from BetterModel during server shutdown. The errors are triggered when Citizens NPCs are being cleaned up, and they appear to be caused by BetterModel intercepting entity removal at the wrong time.

Here is the log containing the shutdown errors:
https://mclo.gs/cs1l9L9

  • BetterModel version: 1.14.3-SNAPSHOT-438
  • Citizens version: 2.0.40-b4015
  • Server software: Leaf
  • Server version: 1.21.8

The issue only occurs during shutdown, not during normal operation. It seems BetterModel attempts to modify or access model data for NPC entities after Citizens (or the server) has already begun unloading them, causing exceptions.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingunproducableCan't reproduce this issue for now

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions