Use BLOCK_MARKER instead of BLOCK for 1.19 compat

This commit is contained in:
fullwall 2024-10-29 23:09:45 +08:00
parent 385b9691d5
commit c1def34749

View File

@ -448,7 +448,7 @@ public class HologramTrait extends Trait {
AreaEffectCloud cloud = (AreaEffectCloud) hologram.getEntity();
if (!rendered) {
cloud.setRadius(0);
cloud.setParticle(Particle.BLOCK, Bukkit.createBlockData(Material.AIR));
cloud.setParticle(Particle.BLOCK_MARKER, Bukkit.createBlockData(Material.AIR));
}
hologram.getEntity().teleport(
npc.getEntity().getLocation().clone().add(offset.x,