Code cleanup

This commit is contained in:
Unknown 2020-02-02 11:57:43 +01:00
parent 3c752f7fe3
commit c4806ef1c1
3 changed files with 5 additions and 5 deletions

View file

@ -1,6 +1,6 @@
package cr0s.warpdrive.api; package cr0s.warpdrive.api;
public interface FunctionGet<Return> { public interface FunctionGet<R> {
Return apply(); R apply();
} }

View file

@ -1,6 +1,6 @@
package cr0s.warpdrive.api; package cr0s.warpdrive.api;
public interface FunctionSetVector<Component> { public interface FunctionSetVector<V> {
void apply(Component x, Component y, Component z); void apply(V x, V y, V z);
} }

View file

@ -247,7 +247,7 @@ public class AirSpreader {
z - facingSource.getZOffset())); z - facingSource.getZOffset()));
if (blockStateGenerator.getBlock() instanceof BlockAirGeneratorTiered) { if (blockStateGenerator.getBlock() instanceof BlockAirGeneratorTiered) {
final EnumFacing facingGenerator = blockStateGenerator.getValue(BlockProperties.FACING); final EnumFacing facingGenerator = blockStateGenerator.getValue(BlockProperties.FACING);
if (facingGenerator == facingSource) { if (facingGenerator.equals(facingSource)) {
// all good // all good
hasGenerator = true; hasGenerator = true;
} }