Skip to content
Success

Changes

Summary

  1. SPIGOT-5732, SPIGOT-6387: Overhaul Hanging entities (details)
Commit 6cd975d07e07231c2f9648a4be474abd59f28c87 by md_5
SPIGOT-5732, SPIGOT-6387: Overhaul Hanging entities

- SPIGOT-5732: Fix issue with spawning leash hitches and painting, by using the right block faces

- SPIGOT-6387: Allow hanging entities to be spawned mid air

- Use randomize parameter to determine if a random painting should be chosen or not

- Return BlockFace self by leash hitches entity

- Throw a standardised exception when trying to set a BlockFace to a hanging entity which the entity does not support, instead of using BlockFace south or throwing a null pointer
The file was modifiedsrc/main/java/org/bukkit/craftbukkit/entity/CraftLeash.java
The file was modifiedsrc/main/java/org/bukkit/craftbukkit/entity/CraftItemFrame.java
The file was modifiedsrc/main/java/org/bukkit/craftbukkit/entity/CraftHanging.java
The file was modifiedsrc/main/java/org/bukkit/craftbukkit/CraftRegionAccessor.java