Remove string switches for BlockType

This commit is contained in:
Jesse Boyd
2019-04-06 03:34:11 +11:00
parent d49c5ebe74
commit 0afae082c2
12 changed files with 293 additions and 244 deletions

View File

@ -311,9 +311,11 @@ public class BrushCommands extends BrushProcessor {
} else {
if (fill instanceof BlockStateHolder) {
BlockType type = ((BlockStateHolder) fill).getBlockType();
if (type == BlockTypes.SAND || type == BlockTypes.GRAVEL) {
BBC.BRUSH_TRY_OTHER.send(player);
falling = true;
switch (type.getInternalId()) {
case BlockID.SAND:
case BlockID.GRAVEL:
BBC.BRUSH_TRY_OTHER.send(player);
falling = true;
}
}
if (falling) {