Skip to content

Commit

Permalink
1.18.6
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexModGuy committed Jun 29, 2022
1 parent 05af1bd commit bdd3cb1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ repositories{
apply plugin: 'eclipse'
apply plugin: 'maven-publish'

version = '1.18.5'
version = '1.18.6'
group = 'com.github.alexthe667' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = 'alexsmobs'

Expand Down Expand Up @@ -119,7 +119,7 @@ mixin {
sourceSets.main.resources { srcDir 'src/generated/resources' }

dependencies {
minecraft 'net.minecraftforge:forge:1.18.2-40.1.0'
minecraft 'net.minecraftforge:forge:1.18.2-40.1.52'
annotationProcessor 'org.spongepowered:mixin:0.8.5:processor'
compileOnly "curse.maven:citadel4-331936:3683009" // change to 3548061
runtimeOnly "curse.maven:citadel4-331936:3683009"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
import net.minecraft.world.entity.player.Player;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.sounds.SoundSource;
import net.minecraft.world.level.material.Fluids;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn;
import net.minecraftforge.client.event.ColorHandlerEvent;
Expand Down Expand Up @@ -252,6 +253,10 @@ public void clientInit() {
//BlockEntityRenderers.register(AMTileEntityRegistry.END_PIRATE_ANCHOR_WINCH.get(), RenderEndPirateAnchorWinch::new);
//BlockEntityRenderers.register(AMTileEntityRegistry.END_PIRATE_SHIP_WHEEL.get(), RenderEndPirateShipWheel::new);
//BlockEntityRenderers.register(AMTileEntityRegistry.END_PIRATE_FLAG.get(), RenderEndPirateFlag::new);
//required for lava vision
RenderType lavaType = RenderType.translucent();
ItemBlockRenderTypes.setRenderLayer(Fluids.LAVA, lavaType);
ItemBlockRenderTypes.setRenderLayer(Fluids.FLOWING_LAVA, lavaType);
Sheets.BANNER_MATERIALS.put(AMItemRegistry.PATTERN_BEAR, new Material(Sheets.BANNER_SHEET, AMItemRegistry.PATTERN_BEAR.location(true)));
Sheets.BANNER_MATERIALS.put(AMItemRegistry.PATTER_AUSTRALIA_0, new Material(Sheets.BANNER_SHEET, AMItemRegistry.PATTER_AUSTRALIA_0.location(true)));
Sheets.BANNER_MATERIALS.put(AMItemRegistry.PATTER_AUSTRALIA_1, new Material(Sheets.BANNER_SHEET, AMItemRegistry.PATTER_AUSTRALIA_1.location(true)));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -352,19 +352,13 @@ public void onRenderWorldLastEvent(RenderLevelLastEvent event) {
if (!AMConfig.shadersCompat) {
if (Minecraft.getInstance().player.hasEffect(AMEffectRegistry.LAVA_VISION)) {
if (!previousLavaVision) {
RenderType lavaType = RenderType.translucent();
ItemBlockRenderTypes.setRenderLayer(Fluids.LAVA, lavaType);
ItemBlockRenderTypes.setRenderLayer(Fluids.FLOWING_LAVA, lavaType);
previousFluidRenderer = Minecraft.getInstance().getBlockRenderer().liquidBlockRenderer;
Minecraft.getInstance().getBlockRenderer().liquidBlockRenderer = new LavaVisionFluidRenderer();
updateAllChunks();
}
} else {
if (previousLavaVision) {
if (previousFluidRenderer != null) {
RenderType lavaType = RenderType.solid();
ItemBlockRenderTypes.setRenderLayer(Fluids.LAVA, lavaType);
ItemBlockRenderTypes.setRenderLayer(Fluids.FLOWING_LAVA, lavaType);
Minecraft.getInstance().getBlockRenderer().liquidBlockRenderer = previousFluidRenderer;
}
updateAllChunks();
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ license="GNU LESSER GENERAL PUBLIC LICENSE"
issueTrackerURL="https://github.com/Alex-the-666/AlexsMobs/issues" #optional
[[mods]] #mandatory
modId="alexsmobs" #mandatory
version="1.18.5" #mandatory
version="1.18.6" #mandatory
displayName="Alex's Mobs" #mandatory
displayURL="https://www.curseforge.com/minecraft/mc-mods/alexs-mobs" #optional
authors="Alexthe668, Carro1001" #optional
Expand Down

0 comments on commit bdd3cb1

Please sign in to comment.