From 9c7e22b9146903d6a2596d1bc3158c0d8f62e3c8 Mon Sep 17 00:00:00 2001 From: xsun2001 <1563770452@qq.com> Date: Sun, 13 Aug 2017 21:47:30 +0800 Subject: [PATCH] Sky chest --- .../java/appeng/block/storage/BlockSkyChest.java | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/src/main/java/appeng/block/storage/BlockSkyChest.java b/src/main/java/appeng/block/storage/BlockSkyChest.java index bf557b985ff..f9c4f122afc 100644 --- a/src/main/java/appeng/block/storage/BlockSkyChest.java +++ b/src/main/java/appeng/block/storage/BlockSkyChest.java @@ -22,6 +22,7 @@ import appeng.api.AEApi; import appeng.block.AEBaseTileBlock; import appeng.client.render.blocks.RenderBlockSkyChest; +import appeng.core.features.AEFeature; import appeng.core.sync.GuiBridge; import appeng.helpers.ICustomCollision; import appeng.tile.storage.TileSkyChest; @@ -44,6 +45,7 @@ import net.minecraftforge.common.util.ForgeDirection; import java.util.Collections; +import java.util.EnumSet; import java.util.List; @@ -54,16 +56,7 @@ public class BlockSkyChest extends AEBaseTileBlock implements ICustomCollision private static final double AABB_OFFSET_SIDES = 0; private static final double AABB_OFFSET_TOP = .125d; - - public enum SkyChestType - { - STONE, BLOCK - } - - - public final SkyChestType type; - - public BlockSkyChest( final SkyChestType type ) + public BlockSkyChest() { super( Material.rock ); this.setTileEntity( TileSkyChest.class ); @@ -71,7 +64,7 @@ public BlockSkyChest( final SkyChestType type ) this.lightOpacity = 0; this.setHardness( 50 ); this.blockResistance = 150.0f; - this.type = type; + this.setFeature( EnumSet.of( AEFeature.Core, AEFeature.SkyStoneChests ) ); } @Override