[SPIGOT-5556] Block .setBiome() and World.setBiome(x, y, z, biome) are broken Created: 01/Feb/20  Updated: 25/Jun/20  Resolved: 01/Feb/20

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

Type: Bug Priority: Minor
Reporter: Apple Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: API, biomes

Attachments: PNG File 2020-02-01_13.44.55_x.png     File BiomePlugin-1.0.jar    
Issue Links:
Cloners
is cloned by SPIGOT-5772 Block .setBiome() and World.setBiome(... Closed
Version: git-Spigot-b9baf71-544ccdc (MC: 1.15.2) (Implementing API version 1.15.2-R.0.1-SNAPSHOT)
Guidelines Read: Yes

 Description   

When using block.setBiome() or World.setBiome(x, y, z, biome) the block that is updated isn't in the same location as the one specified.

Here is an example of some dummy code used to test this:

Block block = event.getClickedBlock();
Location loc = block.getLocation(); 
loc.setY(0); // Set Y to 0 so it appears/updates in-game
loc.getBlock().setBiome(Biome.JUNGLE);

When a block is clicked, a different area of the chunk changes biome. For example, when clicking the blue carpet in the attached image, the biome changes in the area that's circled red.

I have attached a plugin that replicates this - if you right-click the ground with a stick it will change the biome to Jungle.



 Comments   
Comment by OnyxianSoul [ 25/Jun/20 ]

Please reopen the issue @md_5. This is not fixed. I've just tried with a fresh build of spigot 1.15.2 and its still not working correctly.
I've tried both  " world.setBiome(xpos,zpos,Biome.RIVER); " & world.getBlockAt(xpos,world.getHighestBlockYAt(xpos,zpos),zpos).setBiome(Biome.RIVER);

None of them work correctly. Dependign on the location sometimes you change the biome blocks relatively close to xpos zpos, but in a really measy way (changing one block may change 10, and distributed in a random shape (not squares), and sometimes i can't even find the change by walking arround.

All the tests have been done reconecting after the changes, and some even shutting down the server and starting it up again.

"This server is running CraftBukkit version git-Spigot-a99063f-be6aaf0 (MC: 1.15.2)" 

Comment by Shane Bee [ 01/Feb/20 ]

Thank you @md_5 for fixing this. I was having issues with it in a plugin but I assumed it was a vanilla issue due to how they changed biomes.

Comment by md_5 [ 01/Feb/20 ]

No problem, let me know if it is not fixed (it should be)

Comment by Apple [ 01/Feb/20 ]

I just want to use this opportunity to say:

a) Sorry, didn't realise!
b) You are amazing, thank you.

Comment by md_5 [ 01/Feb/20 ]

>As this issue has been marked as resolved, could I at least get some commentary as to how to work around this issue? I

Update your server to the fixed version....

Comment by Apple [ 01/Feb/20 ]

As this issue has been marked as resolved, could I at least get some commentary as to how to work around this issue? I know biomes aren't per-block in 1.15.2, but it would be nice if I could even get close to painting the selected block.

Generated at Fri Apr 11 16:22:22 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.