Skip to content

[Bug] Limb models are invisible for players who haven't seen its spawningΒ #278

@bth123

Description

@bth123

βœ”οΈ Pre-check

  • Tested with the latest snapshot of BetterModel from Modrinth
  • Confirmed the issue occurs without other optional/experimental plugins or clients (see Disclaimer below)

🐞 Problem Description

If you spawn a player limb (bind to a mob in my case), players who were far away or not on the server at this moment will never see the limb even if they get closer/join the server


πŸ–ΌοΈ Screenshot / Video

Player that joined after limb spawn pov
Image

Player that was at server near the limb at the spawn moment pov
Image


πŸ§ͺ Test Model / Code

base = world.spawn(player.getLocation(), Pig.class);
modelRenderer = BetterModel.limb("steve");
modelRenderer.map(
            r -> r.create(BaseEntity.of(BukkitAdapter.adapt(base)), ModelProfile.of(BukkitAdapter.adapt(player)))
).orElse(null);

🌍 Environment

  • OS: Windows
  • Server software & version: Paper 1.21.4

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions