Skip to content

Commit

Permalink
ups... wrong capability
Browse files Browse the repository at this point in the history
  • Loading branch information
Duqueeee committed Feb 8, 2024
1 parent e44815b commit 69bab26
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public VoidBattery getBattery() {

@Override
public @NotNull <T> LazyOptional<T> getCapability(@NotNull Capability<T> cap, @Nullable Direction side) {
if (cap == ForgeCapabilities.FLUID_HANDLER) {
if (cap == ForgeCapabilities.ENERGY) {
return LazyOptional.of(this::getBattery).cast();
}
return super.getCapability(cap, side);
Expand Down

0 comments on commit 69bab26

Please sign in to comment.