add default method to gas interface to maintain binary compat

This commit is contained in:
Xander Victory committed 2017-11-10 15:28:14 +08:00
1 parent 7fa325bc03
commit 8bbef9544c
1 file changed
+1 -1
@@ -48,5 +48,5 @@ public interface IGasHandler
* @return an array of GasTankInfo elements corresponding to all tanks.
*/
@Nonnull
GasTankInfo[] getTankInfo();
default GasTankInfo[] getTankInfo(){ return NONE; }
}