Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Full-only (server-side) : Hide the minimap permanently to players, and give them only access to the full map #846

Open
RemisterReal opened this issue Dec 18, 2024 · 0 comments

Comments

@RemisterReal
Copy link

RemisterReal commented Dec 18, 2024

Describe the new feature.

It would be interesting to hide the minimap from players, but give them access to the full map. In my case, it would be for an RP server, because you would no longer be able to peek at your minimap to see which players are hiding underground or who is going to jump on you.

I'm sure there are other reasons, but, in any case, I think this cool feature should be implemented!

Images

Mysticdrew already coded an API for that :

@Mixin(MiniMap.class)
public class MiniMapMixin
{

    @Inject(method = "drawMap(Lnet/minecraft/client/gui/GuiGraphics;Z)V", 
            at = @At("HEAD"), 
            cancellable = true)
    public void minimapDisable(GuiGraphics graphics, boolean preview, CallbackInfo ci) {
        ci.cancel();
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant