diff --git a/CHANGELOG.md b/CHANGELOG.md index a671afec8d..8acefe4b90 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -240,6 +240,7 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - duplication of holograms when reloading BetonQuest and the hologram is hidden - `menu` conversation IO kicked players when conversation started in the air caused by flying detection - `menu` conversation IO did not stopped scrolling at the bottom and began to scroll from the top again +- removed the hearts of the Armorstand in the Menu Conversation IO - Things that are also fixed in 1.12.X: - eating of items when entering the chest conversation io actually consumed the item - legacy `§x` HEX color format not working in some contexts diff --git a/src/main/java/org/betonquest/betonquest/compatibility/protocollib/conversation/MenuConvIO.java b/src/main/java/org/betonquest/betonquest/compatibility/protocollib/conversation/MenuConvIO.java index f51f033d06..662ba6a02b 100644 --- a/src/main/java/org/betonquest/betonquest/compatibility/protocollib/conversation/MenuConvIO.java +++ b/src/main/java/org/betonquest/betonquest/compatibility/protocollib/conversation/MenuConvIO.java @@ -27,6 +27,8 @@ import org.bukkit.Bukkit; import org.bukkit.ChatColor; import org.bukkit.Location; +import org.bukkit.attribute.Attribute; +import org.bukkit.attribute.AttributeInstance; import org.bukkit.block.Block; import org.bukkit.block.data.BlockData; import org.bukkit.block.data.type.Slab; @@ -224,6 +226,10 @@ private void start() { stand.setGravity(false); stand.setVisible(false); + final AttributeInstance attribute = stand.getAttribute(Attribute.GENERIC_MAX_HEALTH); + if (attribute != null) { + attribute.setBaseValue(0); + } // Mount the player to it using packets final WrapperPlayServerMount mount = new WrapperPlayServerMount();