mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-21 20:42:35 +00:00
Add default cases to switch statements
This commit is contained in:
1 parent
9140f84d57
commit
68ab1b98bd
5 files changed
+16
-7
No files matched your search
@@ -51,8 +51,9 @@ public class EnergyManager implements IEnergyHandler, IStreamable {
|
||||
case EXTRACT:
|
||||
case BOTH:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
private boolean canReceive() {
|
||||
@@ -60,8 +61,9 @@ public class EnergyManager implements IEnergyHandler, IStreamable {
|
||||
case RECEIVE:
|
||||
case BOTH:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/* NBT */
|
||||
|
||||
Reference in new issue
Block a user