File tree 1 file changed +2
-2
lines changed
src/main/java/dev/galacticraft/machinelib/api/block/entity
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ public static <T extends MachineBlockEntity> void registerProviders(@NotNull Blo
108
108
EnergyStorage .SIDED .registerForBlockEntity ((machine , direction ) -> {
109
109
if (direction == null ) return machine .energyStorage ().getExposedStorage (ResourceFlow .BOTH );
110
110
IOFace ioFace = machine .getIOConfig ().get (Objects .requireNonNull (BlockFace .from (machine .getBlockState (), direction )));
111
- return ioFace .getType ().willAcceptResource (ResourceType .FLUID ) ? machine .energyStorage ().getExposedStorage (ioFace .getFlow ()) : null ;
111
+ return ioFace .getType ().willAcceptResource (ResourceType .ENERGY ) ? machine .energyStorage ().getExposedStorage (ioFace .getFlow ()) : null ;
112
112
}, type );
113
113
ItemStorage .SIDED .registerForBlockEntity ((machine , direction ) -> {
114
114
if (direction == null ) return machine .itemStorage ().getExposedStorage (ResourceFlow .BOTH );
@@ -118,7 +118,7 @@ public static <T extends MachineBlockEntity> void registerProviders(@NotNull Blo
118
118
FluidStorage .SIDED .registerForBlockEntity ((machine , direction ) -> {
119
119
if (direction == null ) return machine .fluidStorage ().getExposedStorage (ResourceFlow .BOTH );
120
120
IOFace ioFace = machine .getIOConfig ().get (Objects .requireNonNull (BlockFace .from (machine .getBlockState (), direction )));
121
- return ioFace .getType ().willAcceptResource (ResourceType .ENERGY ) ? machine .fluidStorage ().getExposedStorage (ioFace .getFlow ()) : null ;
121
+ return ioFace .getType ().willAcceptResource (ResourceType .FLUID ) ? machine .fluidStorage ().getExposedStorage (ioFace .getFlow ()) : null ;
122
122
}, type );
123
123
}
124
124
You can’t perform that action at this time.
0 commit comments