[SPIGOT-4149] Snow.setLayers doesn't seem to actually work in 1.13 Created: 25/Jul/18  Updated: 25/Jul/18  Resolved: 25/Jul/18

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

Type: Bug Priority: Minor
Reporter: Eddie Churchill Assignee: Unassigned
Resolution: Invalid Votes: 0
Labels: 1.13, snow
Environment:

As vanilla as I can get, nothing in plugins except the one I am porting to 1.13


Attachments: PNG File 2018-07-24_18.32.00.png    
Version: This server is running CraftBukkit version git-Spigot-0b44fa0-49a2604 (MC: 1.13) (Implementing API version 1.13-R0.1-SNAPSHOT)

 Description   

It doesn't seem to matter what I give setLayers, the resulting Snow will always be 1 level high

block = chunk.getBlock(x, y + 1, z);
block.setType(Material.Snow);
BlockData data = block.getBlockData();
if (data instanceof Snow) {
Snow snow = (Snow)data;
snow.setLayers(4);
}

(note: thanks again for all the work on 1.13. I am slowly porting my plugins to support it. With that in mind, it is entirely possible that I am doing something wrong. I looked around for an update function but couldn't find it – BlockState had one for example)



 Comments   
Comment by Eddie Churchill [ 25/Jul/18 ]

Aha! that is the new update! (so to speak) Cool... thanks off to test

WORKS GREAT, THANKS

Comment by md_5 [ 25/Jul/18 ]

You aren’t calling setBlockData

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