mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-08-18 03:59:23 +02:00
Fix some missing default cases and possible fall-through issues.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
@@ -564,6 +564,8 @@ public class ItemChecks {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user