Полупрозрачная черная текстура становиться просто черной.

Версия Minecraft
1.19.2
37
1
1
С текстурой все хорошо, но видимо что то с рендерингом или хз. Вот код:
Кнопка1:
//Buttons
    Options options = Minecraft.getInstance().options;
    Integer previousGuiScale = options.guiScale().get();
    @Override
    public void init() {
        super.init();
        RenderSystem.enableBlend();
        RenderSystem.defaultBlendFunc();
        this.minecraft.keyboardHandler.setSendRepeatsToGui(true);
        this.button1 = new ImageButton(XButton1, YButton1, WidthButton1, HeightButton1, 0, 0, 0, new ResourceLocation("engine:textures/gui/button.png"), WidthButton1, HeightButton1, e -> {
            if (true) {
                engine.SIMPLE_CHANNEL.sendToServer(new DialogButtonMessage(0, x, y, z));
                if (!list1.isEmpty()) {
                    Runnable runnable = list1.get(0);
                    entity.closeContainer();
                    runnable.run();
                    options.guiScale().set(previousGuiScale);
                    Minecraft.getInstance().resizeDisplay();
                }
            }
        });
        guistate.put("buton1", button1);
        this.addRenderableWidget(button1);
 
Назад
Сверху