Paper icon indicating copy to clipboard operation
Paper copied to clipboard

Visual glitch with custom hearts container

Open Doc94 opened this issue 4 years ago • 3 comments

What behaviour is expected:

If you have custom heart containers (example 40 not the default 20) when you join you can see all containers filled.

What behaviour is observed:

When join (you have full life) the client only show 20 hearts filled and the another 20 not filled, if you take damaage then the client reload the rest of containers full.

Steps/models to reproduce:

  1. Join to the server
  2. Run this command /attribute @s minecraft:generic.max_health base set 40
  3. Get all the containers filled
  4. Disconnect from server
  5. Reconnect to Server
  6. Take damage

Plugin list:

AsyncWorldEdit, ConterCraft, CoreProtect, LibsDisguises, LuckPerms, PlugMan, ProtocolLib, WorldEdit

Paper version:

git-Paper-288 (MC: 1.16.4) (Implementing API version 1.16.4-R0.1-SNAPSHOT)

Anything else:

Gif of issue: https://imgur.com/rp8sWqA

Doc94 avatar Nov 21 '20 15:11 Doc94

Its a Spigot bug but they cant find the cause of issue: https://hub.spigotmc.org/jira/browse/SPIGOT-6250

Doc94 avatar Nov 23 '20 23:11 Doc94

Thought I'd mention that I've been using a workaround fix in my plugin for a while now, simply just doing Common.sendPacketToPlayer(event.getPlayer(), new PacketPlayOutUpdateAttributes(((CraftPlayer) event.getPlayer()).getHandle().getId(), ((CraftPlayer) event.getPlayer()).getHandle().getAttributeMap().b())); on PlayerJoinEvent

HexedHero avatar Nov 18 '21 16:11 HexedHero

Can reproduce as of 1.19.1, looking into this myself.

Owen1212055 avatar Aug 06 '22 23:08 Owen1212055

Is this able to be reproduced as of 1.19.2 using the chunk system recode?

Some testing was done and it seems that it resolves this issue, but my PR might serve a purpose as there is no reason to be resending the player tracker data like that anyways.

Owen1212055 avatar Nov 10 '22 03:11 Owen1212055

Finally this issue looks fixed then i prefer close because the main issue is handled 🍡

Doc94 avatar Nov 11 '22 20:11 Doc94