Skip to content

Commit

Permalink
register empty fapi transfer storage for Heartbound Chest. Workaround…
Browse files Browse the repository at this point in the history
… for #659
  • Loading branch information
DaFuqs committed Jan 16, 2025
1 parent f9e4b01 commit bc97936
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/de/dafuqs/spectrum/SpectrumCommon.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import net.fabricmc.fabric.api.resource.*;
import net.fabricmc.fabric.api.transfer.v1.fluid.*;
import net.fabricmc.fabric.api.transfer.v1.item.*;
import net.fabricmc.fabric.api.transfer.v1.storage.*;
import net.fabricmc.loader.api.*;
import net.minecraft.item.*;
import net.minecraft.recipe.*;
Expand Down Expand Up @@ -229,6 +230,8 @@ public void onInitialize() {
logInfo("Registering Tree Decorator Types...");
SpectrumTreeDecoratorTypes.register();

//noinspection UnstableApiUsage
ItemStorage.SIDED.registerForBlockEntity((be, d) -> Storage.empty(), SpectrumBlockEntities.HEARTBOUND_CHEST);
//noinspection UnstableApiUsage
ItemStorage.SIDED.registerForBlockEntity((blockEntity, direction) -> blockEntity.storage, SpectrumBlockEntities.BOTTOMLESS_BUNDLE);
//noinspection UnstableApiUsage
Expand Down

0 comments on commit bc97936

Please sign in to comment.