[SPIGOT-1464] Mushroom block setFacePainted produces incorrect/invalid results Created: 04/Feb/16  Updated: 25/Mar/16  Resolved: 25/Mar/16

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Ryan Bennitt Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: bukkit

Attachments: Text File 0001-SPIGOT-1464-Fixed-setting-mushroom-faces.patch    

 Description   

The setFacePainted method in the Mushroom material class produces at best incorrect results for certain valid combinations of calls, at worst it produces invalid data values that cause the block to disappear.



 Comments   
Comment by Ryan Bennitt [ 12/Feb/16 ]

Attached patch to apply to 1.9 branch, on top of SPIGOT-1389 plus the sapling patch

Comment by Ryan Bennitt [ 04/Feb/16 ]

Submitted pull request to bukkit master.
Ensured only valid data values are set and enforced sensible transitions when setting combinations of faces.
Added convenience constructors.
Added unit test.

Generated at Sat Dec 13 13:39:24 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.