Skip to content

Commit

Permalink
Merge branch '2.4.6': Deepslate bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Roadhog360 committed May 6, 2023
2 parents 323fdbf + f759b63 commit e2c9999
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
// SEMVER that gradle uses.
group = "ganymedes01.etfuturum"
archivesBaseName = "Et_Futurum_Requiem"
def modVersion = "2.4.5"
def modVersion = "2.4.6"
version = project.hasProperty("useCommitHashInVersion") ? getCommitVersion(modVersion) : modVersion

def buildAll = project.hasProperty("all")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ public BlockDeepslateOre(Block block) {
super();
setAttribs(this, block);
base = block;
if(isEnabled() && (!(base instanceof IConfigurable) || ((IConfigurable)base).isEnabled()))
setCreativeTab(EtFuturum.creativeTabBlocks);
if(isEnabled() && (!(base instanceof IConfigurable) || ((IConfigurable)base).isEnabled())) {
addDeepslateMappings();
}
}

public static void setAttribs(Block to, Block from) {
Expand All @@ -46,7 +48,6 @@ public static void setAttribs(Block to, Block from) {
to.setBlockName(Utils.getUnlocalisedName("deepslate_" + from.textureName.toLowerCase()));
to.setBlockTextureName("deepslate_" + from.textureName);
to.setStepSound(ConfigSounds.newBlockSounds ? ModSounds.soundDeepslate : soundTypeStone);
to.setCreativeTab(from.getCreativeTabToDisplayOn());
to.setLightLevel(from.getLightValue() / 15F);
to.setLightOpacity(from.getLightOpacity());
for(int i = 0; i < 16; i++) {
Expand Down

0 comments on commit e2c9999

Please sign in to comment.