版本:1.20.1-1.4.8-beta
* 修复了原模组冰箱无法打开的问题
This commit is contained in:
parent
beb253883b
commit
8079fa6992
|
|
@ -43,7 +43,7 @@ mod_name=Modern Life Patch
|
|||
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
|
||||
mod_license=MIT
|
||||
# The mod version. See https://semver.org/
|
||||
mod_version=1.20.1-1.4.7-beta
|
||||
mod_version=1.20.1-1.4.8-beta
|
||||
# The group ID for the mod. It is only important when publishing as an artifact to a Maven repository.
|
||||
# This should match the base package used for the mod sources.
|
||||
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
@ -28,8 +29,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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user