Mappings
This commit is contained in:
parent
389b716880
commit
f5c6b59ebd
79 changed files with 163 additions and 204 deletions
|
@ -148,7 +148,7 @@ public class RubberTreeGenerator extends WorldGenerator {
|
|||
boolean isAddingSap = false;
|
||||
if (rand.nextInt(Core.worldGen.config.rubberTreeConfig.sapRarity) == 0) {
|
||||
newState = newState.withProperty(BlockRubberLog.HAS_SAP, true)
|
||||
.withProperty(BlockRubberLog.SAP_SIDE, EnumFacing.getHorizontal(rand.nextInt(4)));
|
||||
.withProperty(BlockRubberLog.SAP_SIDE, EnumFacing.byHorizontalIndex(rand.nextInt(4)));
|
||||
isAddingSap = true;
|
||||
}
|
||||
if (isAddingSap) {
|
||||
|
|
|
@ -53,7 +53,7 @@ public class OreConfig {
|
|||
public OreConfig(IBlockState blockSate, int veinSize, int veinsPerChunk, int minYHeight, int maxYHeight) {
|
||||
this.meta = blockSate.getBlock().getMetaFromState(blockSate);
|
||||
this.state = blockSate;
|
||||
this.blockName = blockSate.getBlock().getUnlocalizedName();
|
||||
this.blockName = blockSate.getBlock().getTranslationKey();
|
||||
if (blockSate.getBlock() instanceof IOreNameProvider) {
|
||||
this.blockNiceName = ((IOreNameProvider) blockSate.getBlock()).getUserLoclisedName(blockSate);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue