Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

Commit

Permalink
- Tab buttons are no longer shown when the recipe book is open.
Browse files Browse the repository at this point in the history
  • Loading branch information
majikdev committed Jun 14, 2021
1 parent 5e6288b commit 9eff96b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'eclipse'
apply plugin: 'maven-publish'

version = '1.3.2'
version = '1.3.3'
group = 'majik.rereskillable'
archivesBaseName = name + '-' + project.mcVersion

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ org.gradle.daemon=false

name = Rereskillable
author = majik
version = 1.3.2
version = 1.3.3
mcVersion = 1.16.5
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,16 @@ public TabButton(int x, int y, TabType type, boolean selected)
@Override
public void render(MatrixStack stack, int mouseX, int mouseY, float partialTicks)
{
Minecraft.getInstance().textureManager.bind(SkillScreen.RESOURCES);
Minecraft minecraft = Minecraft.getInstance();
active = !(minecraft.screen instanceof InventoryScreen) || !((InventoryScreen) minecraft.screen).getRecipeBookComponent().isVisible();

blit(stack, x, y, selected ? 31 : 0, 166, width, height);
blit(stack, x + (selected ? 8 : 10), y + 6, 240, 128 + type.iconIndex * 16, 16, 16);
if (active)
{
minecraft.textureManager.bind(SkillScreen.RESOURCES);

blit(stack, x, y, selected ? 31 : 0, 166, width, height);
blit(stack, x + (selected ? 8 : 10), y + 6, 240, 128 + type.iconIndex * 16, 16, 16);
}
}

// Press
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="All rights reserved"

[[mods]]
modId="rereskillable"
version="1.3.2"
version="1.3.3"
displayName="Rereskillable"
displayURL="https://www.curseforge.com/minecraft/mc-mods/rereskillable"
credits="Skillable and Reskillable"
Expand Down

0 comments on commit 9eff96b

Please # to comment.