mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 14:52:58 +00:00
Creative Bins? Creative Bins.
This commit is contained in:
1 parent
6de798356f
commit
5a573b7d44
22 files changed
+149
-50
No files matched your search
@@ -44,7 +44,7 @@ import com.google.common.base.Predicates;
|
||||
public class BlockStateBasic extends ExtendedBlockState
|
||||
{
|
||||
public static final PropertyBool activeProperty = PropertyBool.create("active");
|
||||
public static final PropertyEnum<BaseTier> tierProperty = PropertyEnum.create("tier", BaseTier.class, BaseTier.BASIC, BaseTier.ADVANCED, BaseTier.ELITE, BaseTier.ULTIMATE);
|
||||
public static final PropertyEnum<BaseTier> tierProperty = PropertyEnum.create("tier", BaseTier.class);
|
||||
public static final PropertyCTMRenderContext ctmProperty = new PropertyCTMRenderContext();
|
||||
|
||||
public BlockStateBasic(BlockBasic block, PropertyEnum<BasicBlockType> typeProperty)
|
||||
@@ -278,6 +278,11 @@ public class BlockStateBasic extends ExtendedBlockState
|
||||
{
|
||||
BaseTier tier = state.getValue(tierProperty);
|
||||
|
||||
if(tier == BaseTier.CREATIVE && type != BasicBlockType.BIN)
|
||||
{
|
||||
tier = BaseTier.ULTIMATE;
|
||||
}
|
||||
|
||||
nameOverride = type.getName() + "_" + tier.getName();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user