Результат крафта

Версия Minecraft
1.12.2
170
2
53
Код:
    public InventoryCrafting craftMatrix = new InventoryCrafting(this, 2, 2);
    public InventoryCraftResult craftResult = new InventoryCraftResult();
    public Slot sl;       


    sl = new SlotCrafting(thePlayer, this.craftMatrix, this.craftResult, 0, 182, 138);
        this.addSlotToContainer(sl);

        for (int i = 0; i < 2; ++i) {
            for (int j = 0; j < 2; ++j) {
                this.addSlotToContainer(new Slot(this.craftMatrix, j + i * 2, 130 + j * 17, 120 + i * 18));
            }
        }

Java:
    @Override
    public void onCraftMatrixChanged(IInventory inventoryIn) {
        this.slotChangedCraftingGrid(this.thePlayer.world, this.thePlayer, this.craftMatrix, this.craftResult);
    }

Не рендерит предмет пока не нажать на него, как исправить?
 

Icosider

Kotliner
Администратор
3,600
99
663
@Override public void onCraftMatrixChanged(IInventory inventoryIn) { this.slotChangedCraftingGrid(this.thePlayer.world, this.thePlayer, this.craftMatrix, this.craftResult); }
А разве не:
Java:
public void onCraftMatrixChanged(IInventory p_75130_1_)
{
    this.craftResult.setInventorySlotContents(0, CraftingManager.getInstance().findMatchingRecipe(this.craftMatrix, this.thePlayer.worldObj));
}
?
 
3,005
192
592
3,005
192
592
Сверху