question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DrawTexture does not draw texture as it did in 1.16

See original GitHub issue

After updating my plugin to the latest Fabric version for MC 1.17.1, I get the following error while building it:

src\main\java\buddy\CommandHelper.java:9: error: package net.fabricmc.fabric.api.client.command.v1 does not exist import net.fabricmc.fabric.api.client.command.v1.ClientCommandManager; ^ src\main\java\buddy\CommandHelper.java:10: error: package net.fabricmc.fabric.api.client.command.v1 does not exist import net.fabricmc.fabric.api.client.command.v1.FabricClientCommandSource;

I already ran “gradlew vscode” and “gradlew genSources” and also ran remapping.

Does someone know how to fix it? In 1.16 it worked perfectly fine.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
intactcommented, Aug 24, 2021

that code in 1.16 mc.getTextureManager().bindTexture(coinId);

is something like this in 1.17 RenderSystem.setShaderTexture(0, coinId);

0reactions
Drommedharcommented, Aug 25, 2021

That and switching the RenderMethod from “Head” to “Tail” fixed it. Thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[1.16.5] How to draw a texture - Modder Support - Forge Forums
Hello, I am trying to render an icon on the screen. ... I am not sure why it is not able to locate...
Read more >
Graphics.DrawTexture doesn't do as expected - Unity Forum
The description of DrawTexture says Draw a texture in screen coordinates. so, am I just dense or is DrawTexture not behaving as it...
Read more >
Draw Texture Simple - Unreal Engine Documentation
Draws a textured quad on the HUD. Assumes 1:1 texel density. Target is HUD. Draw Texture Simple.
Read more >
Scripting API: Graphics.DrawTexture - Unity - Manual
Custom Material that can be used to draw the texture. If null is passed, a default material with the Internal-GUITexture.shader is used. pass,...
Read more >
SASL Reference Manual
There is no limitation on how many SASL-driven projects may be installed and run ... Size assignment can be omitted for components that...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found