Fix some missing default cases and possible fall-through issues.

This commit is contained in:
GJ
2013-02-13 16:34:36 -05:00
parent 3a919f3e4c
commit f4da69a205
6 changed files with 15 additions and 1 deletions

View File

@ -162,10 +162,12 @@ public final class BlockChecks {
return true;
case SMOOTH_BRICK:
case COBBLE_WALL:
if (block.getData() == 0) {
if (block.getData() == (byte)0x0) {
return true;
}
return false;
default:
return false;
}

View File

@ -564,6 +564,8 @@ public class ItemChecks {
return true;
}
return false;
default:
return false;
}