/after.patch Secret
Last active
March 5, 2017 06:36
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- if (this.field_78455_a.field_71439_g.func_70055_a(Material.field_151586_h)) | |
++ Block viewBlock = ActiveRenderInfo.func_186703_a(this.field_78455_a.field_71441_e, this.field_78455_a.func_175606_aa(), p_78447_1_).func_177230_c(); | |
++ if (viewBlock instanceof net.minecraftforge.fluids.IFluidBlock) { | |
++ ResourceLocation overlay = ((net.minecraftforge.fluids.IFluidBlock)viewBlock).getOverlayTexture(); | |
++ if(overlay != null && !net.minecraftforge.event.ForgeEventFactory.renderWaterOverlay(field_78455_a.field_71439_g, p_78447_1_)) this.renderWaterOverlayTexture(p_78447_1_, overlay); | |
++ } else | |
if (this.field_78455_a.field_71439_g.func_70055_a(Material.field_151586_h)) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- if (this.field_78455_a.field_71439_g.func_70055_a(Material.field_151586_h)) | |
+- if (this.field_78455_a.field_71439_g.func_70055_a(Material.field_151586_h)) | |
++ Block viewBlock = ActiveRenderInfo.func_186703_a(this.field_78455_a.field_71441_e, this.field_78455_a.func_175606_aa(), p_78447_1_).func_177230_c(); | |
++ if(viewBlock instanceof net.minecraftforge.fluids.IFluidBlock) | |
{ | |
++ ResourceLocation overlay = ((net.minecraftforge.fluids.IFluidBlock)viewBlock).getOverlayTexture(); | |
++ if(overlay != null && !net.minecraftforge.event.ForgeEventFactory.renderWaterOverlay(field_78455_a.field_71439_g, p_78447_1_)) this.renderWaterOverlayTexture(p_78447_1_, overlay); | |
++ } | |
++ else if (this.field_78455_a.field_71439_g.func_70055_a(Material.field_151586_h)) | |
++ { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- if (this.field_78455_a.field_71439_g.func_70055_a(Material.field_151586_h)) | |
++ if (forgeOverlay(p_78447_1_)) | |
if (this.field_78455_a.field_71439_g.func_70055_a(Material.field_151586_h)) | |
{ | |
private boolean forgeOverlay(float partialTicks) | |
{ | |
Block viewBlock = ActiveRenderInfo.func_186703_a(this.field_78455_a.field_71441_e, this.field_78455_a.func_175606_aa(), partialTicks).func_177230_c(); | |
if (viewBlock instanceof net.minecraftforge.fluids.IFluidBlock) | |
{ | |
ResourceLocation overlay = ((net.minecraftforge.fluids.IFluidBlock)viewBlock).getOverlayTexture(); | |
if(overlay != null && !net.minecraftforge.event.ForgeEventFactory.renderWaterOverlay(field_78455_a.field_71439_g, partialTicks)) | |
{ | |
this.renderWaterOverlayTexture(partialTicks, overlay); | |
} | |
return false; | |
} | |
return true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment