Skip to content

Commit

Permalink
removed the hearts of the Armorstand in the Menu Conversation IO
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolf2323 committed Nov 7, 2023
1 parent a26e465 commit c1e6eda
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit c1e6eda

Please sign in to comment.