Skip to content

Commit

Permalink
Use new methods to get icons
Browse files Browse the repository at this point in the history
  • Loading branch information
RappyTV committed Oct 26, 2024
1 parent 1c57172 commit 75c38c3
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.rappytv.globaltags.api.GlobalTagAPI;
import com.rappytv.globaltags.GlobalTagAddon;
import com.rappytv.globaltags.config.GlobalTagConfig;
import com.rappytv.globaltags.wrapper.enums.GlobalIcon;
import com.rappytv.globaltags.wrapper.enums.GlobalPosition;
import com.rappytv.globaltags.wrapper.model.PlayerInfo;
import net.labymod.api.Laby;
Expand Down Expand Up @@ -67,14 +68,14 @@ public void render(Stack stack, Entity entity) {
if(info == null) return;

Laby.labyAPI().renderPipeline().renderSeeThrough(entity, () -> {
if(info.getIconUrl() != null) Icon.url(info.getIconUrl()).render(
if(info.getGlobalIcon() != GlobalIcon.NONE) Icon.url(info.getIconUrl()).render(
stack,
-11,
0,
9,
9
);
if(info.getHighestRole() != null) Icon.url(info.getHighestRole().getIconUrl()).render(
if(info.getHighestRoleIcon() != null) Icon.url(info.getHighestRoleIcon()).render(
stack,
getWidth() + 0.9F,
-1.2F,
Expand Down

0 comments on commit 75c38c3

Please sign in to comment.