diff --git a/src/main/java/dev/wolfieboy09/qstorage/block/disk_assembler/DiskAssemblerBlockEntity.java b/src/main/java/dev/wolfieboy09/qstorage/block/disk_assembler/DiskAssemblerBlockEntity.java index 477dceb..de29e90 100644 --- a/src/main/java/dev/wolfieboy09/qstorage/block/disk_assembler/DiskAssemblerBlockEntity.java +++ b/src/main/java/dev/wolfieboy09/qstorage/block/disk_assembler/DiskAssemblerBlockEntity.java @@ -65,6 +65,7 @@ public boolean canReceive() { } public EnergyStorage getEnergyHandler(Direction side) { + if (side == null) return this.getEnergyStorage(); Direction blockFacing = this.getBlockState().getValue(DiskAssemblerBlock.FACING); return side == blockFacing.getOpposite() ? this.getEnergyStorage() : null; } diff --git a/src/main/java/dev/wolfieboy09/qstorage/intergration/jei/disk_assembeler/DiskAssemblerCategory.java b/src/main/java/dev/wolfieboy09/qstorage/intergration/jei/disk_assembeler/DiskAssemblerCategory.java index 2811e15..0efb99b 100644 --- a/src/main/java/dev/wolfieboy09/qstorage/intergration/jei/disk_assembeler/DiskAssemblerCategory.java +++ b/src/main/java/dev/wolfieboy09/qstorage/intergration/jei/disk_assembeler/DiskAssemblerCategory.java @@ -6,6 +6,7 @@ import dev.wolfieboy09.qstorage.api.util.ResourceHelper; import dev.wolfieboy09.qstorage.block.disk_assembler.DiskAssemblerRecipe; import dev.wolfieboy09.qstorage.registries.QSBlocks; +import mezz.jei.api.constants.VanillaTypes; import mezz.jei.api.gui.builder.IRecipeLayoutBuilder; import mezz.jei.api.gui.drawable.IDrawable; import mezz.jei.api.helpers.IGuiHelper; @@ -26,8 +27,8 @@ public class DiskAssemblerCategory implements IRecipeCategory