This commit is contained in:
modmuss50 2018-07-20 22:31:20 +01:00
parent 389b716880
commit f5c6b59ebd
No known key found for this signature in database
GPG key ID: 773D17BE8BF49C82
79 changed files with 163 additions and 204 deletions

View file

@ -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) {

View file

@ -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 {