Open Poswn opened 2 years ago
Breaking a block will play a sound and show particles of where block was broken.
No sound played or particles shown.
Go into creative mode (can't break any blocks in survival for some reason) and break a block.
I dug into this a bit myself and it seems be from this piece of code (or look at code I copied below) where chunk.getPlayerLoaders() in fact is empty.
chunk.getPlayerLoaders()
This code snippet is taken from here.
if (createParticles) { Chunk chunk = this.getLoadedChunk(target.getPosition()); if (chunk != null) { this.addParticle(new DestroyBlockParticle(target.getPosition().toFloat().add(0.5, 0.5, 0.5), target.getState()), (Collection<Player>) chunk.getPlayerLoaders()); } }
Expected Behavior
Breaking a block will play a sound and show particles of where block was broken.
Actual Behavior
No sound played or particles shown.
Steps to Reproduce
Go into creative mode (can't break any blocks in survival for some reason) and break a block.
Debug information
I dug into this a bit myself and it seems be from this piece of code (or look at code I copied below) where
chunk.getPlayerLoaders()
in fact is empty.This code snippet is taken from here.