mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-26 23:03:18 +00:00
Clean up more null/nonnull, refactor gui ledgers
This commit is contained in:
1 parent
b2d4e6eaba
commit
35f9b95f37
124 files changed
+827
-655
No files matched your search
@@ -1,5 +1,7 @@
|
||||
package forestry.energy;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
import forestry.api.core.ForestryAPI;
|
||||
import forestry.core.tiles.TileEngine;
|
||||
import forestry.energy.compat.tesla.TeslaHelper;
|
||||
@@ -87,8 +89,8 @@ public class EnergyHelper {
|
||||
return sendEnergy(energyManager, orientation, tile, Integer.MAX_VALUE, true) > 0;
|
||||
}
|
||||
|
||||
public static boolean isEnergyReceiverOrEngine(EnumFacing side, TileEntity tile) {
|
||||
if(tile == null){
|
||||
public static boolean isEnergyReceiverOrEngine(EnumFacing side, @Nullable TileEntity tile) {
|
||||
if (tile == null) {
|
||||
return false;
|
||||
}
|
||||
if (tile instanceof TileEngine) { // engine chaining
|
||||
|
||||
Reference in new issue
Block a user