Get rid of the string equality and convert a few more ID uses over.

This commit is contained in:
Matthew Miller
2018-01-03 16:39:03 +10:00
parent 41a80064f5
commit f5f1d357d9
39 changed files with 658 additions and 115 deletions

View File

@ -318,7 +318,7 @@ public class BaseBlock extends Block implements TileEntityBlock {
* @return if air
*/
public boolean isAir() {
return getType().getId().equals(BlockTypes.AIR);
return getType() == BlockTypes.AIR;
}
/**