From 653920817a99981a11ef34526c4d1c0688765c7e Mon Sep 17 00:00:00 2001 From: 3944Realms Date: Tue, 25 Mar 2025 15:28:57 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=88=E6=9C=AC=EF=BC=9A1.18.2-1.4.8-beta=20?= =?UTF-8?q?*=20=E4=BF=AE=E5=A4=8D=E4=BA=86=E5=8E=9F=E6=A8=A1=E7=BB=84?= =?UTF-8?q?=E5=86=B0=E7=AE=B1=E6=97=A0=E6=B3=95=E6=89=93=E5=BC=80=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gradle.properties | 2 +- .../mixin/block/kitchen/MixinRefrigerator.java | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/gradle.properties b/gradle.properties index cf917c8..273b7ac 100644 --- a/gradle.properties +++ b/gradle.properties @@ -6,4 +6,4 @@ org.gradle.daemon=false mod.id = modernlifepatch mod.group = com.r3944realms.modernlifepatch mod.author = r3944Realms -mod.version = 1.18.2-1.4.7-beta \ No newline at end of file +mod.version = 1.18.2-1.4.8-beta \ No newline at end of file diff --git a/src/main/java/com/r3944realms/modernlifepatch/mixin/block/kitchen/MixinRefrigerator.java b/src/main/java/com/r3944realms/modernlifepatch/mixin/block/kitchen/MixinRefrigerator.java index 80078b0..f9fbf97 100644 --- a/src/main/java/com/r3944realms/modernlifepatch/mixin/block/kitchen/MixinRefrigerator.java +++ b/src/main/java/com/r3944realms/modernlifepatch/mixin/block/kitchen/MixinRefrigerator.java @@ -1,6 +1,7 @@ package com.r3944realms.modernlifepatch.mixin.block.kitchen; import com.dairymoose.modernlife.blocks.RefrigeratorBlock; +import com.dairymoose.modernlife.tileentities.RefrigeratorBlockEntity; import com.dairymoose.modernlife.tileentities.SeedSpreaderBlockEntity; import com.r3944realms.modernlifepatch.datagen.lang.ModLangKeyValue; import net.minecraft.core.BlockPos; @@ -29,8 +30,8 @@ public class MixinRefrigerator { @Override public AbstractContainerMenu createMenu(int paramInt, @NotNull Inventory paramInventory, @NotNull Player paramPlayer) { BlockEntity tileEntity = level.getBlockEntity(blockPos); - if (tileEntity instanceof SeedSpreaderBlockEntity seedSpreaderBlockEntity) { - return new ChestMenu(MenuType.GENERIC_9x1, paramInt, paramInventory, seedSpreaderBlockEntity, 1); + if (tileEntity instanceof RefrigeratorBlockEntity refrigeratorBlockEntity) { + return new ChestMenu(MenuType.GENERIC_9x4, paramInt, paramInventory, refrigeratorBlockEntity, 4); } else { return null; }