Use Material rather than legacy int/data when specifying block break effect type (#1829)

This commit is contained in:
Jordan
2022-06-22 12:50:09 +01:00
committed by GitHub
parent e3f2d5f737
commit d498996cbd
4 changed files with 38 additions and 2 deletions

View File

@ -132,6 +132,13 @@ public class WorldWrapper extends AbstractWorld {
return parent.playEffect(position, type, data);
}
//FAWE start - allow block break effect of non-legacy blocks
@Override
public boolean playBlockBreakEffect(Vector3 position, BlockType type) {
return parent.playBlockBreakEffect(position, type);
}
//FAWE end
@Override
public boolean queueBlockBreakEffect(Platform server, BlockVector3 position, BlockType blockType, double priority) {
return parent.queueBlockBreakEffect(server, position, blockType, priority);