those extra 2 lines aren't useful anymore

This commit is contained in:
Voxelstice 2023-06-26 22:33:11 +03:00 committed by GitHub
parent f9959e9a4a
commit f29a9d7250
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,13 +21,11 @@ public abstract class TileEntityPylonBase extends TileEntityCableBaseNT {
public static int canConnect(TileEntityPylonBase first, TileEntityPylonBase second) {
if(first.getConnectionType() != second.getConnectionType()) {
if(first.getConnectionType() != second.getConnectionType())
return 1;
}
if(first == second) {
if(first == second)
return 2;
}
double len = Math.min(first.getMaxWireLength(), second.getMaxWireLength());