Skip to content

Commit

Permalink
Revert "Revert "remove pointless allocations""
Browse files Browse the repository at this point in the history
This reverts commit 6fce9e9.

This should go through the proper reviews instead of being pushed to master directly
  • Loading branch information
Glease committed Dec 10, 2022
1 parent 6fce9e9 commit 5286568
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions src/main/scala/extracells/gridblock/Constants.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package extracells.gridblock;

import appeng.api.networking.GridFlags;

import java.util.EnumSet;

class Constants {
static final EnumSet<GridFlags> BASE_GRID_FLAGS = EnumSet.of(GridFlags.REQUIRE_CHANNEL);
}
2 changes: 1 addition & 1 deletion src/main/scala/extracells/gridblock/ECBaseGridBlock.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public final EnumSet<ForgeDirection> getConnectableSides() {

@Override
public EnumSet<GridFlags> getFlags() {
return EnumSet.of(GridFlags.REQUIRE_CHANNEL);
return Constants.BASE_GRID_FLAGS;
}

public IMEMonitor<IAEFluidStack> getFluidMonitor() {
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/extracells/gridblock/ECFluidGridBlock.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public final EnumSet<ForgeDirection> getConnectableSides() {

@Override
public EnumSet<GridFlags> getFlags() {
return EnumSet.of(GridFlags.REQUIRE_CHANNEL);
return Constants.BASE_GRID_FLAGS;
}

@Override
Expand Down

0 comments on commit 5286568

Please sign in to comment.