mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-26 06:52:58 +00:00
Fix StencilTable always creating a wooden tool rod until button is pressed
This commit is contained in:
1 parent
d25e7e97ae
commit
64d6638175
2 files changed
+13
-2
No files matched your search
@@ -101,6 +101,9 @@ public class StencilTableGui extends GuiContainer
|
||||
activeButton = StencilBuilder.getIndex(logic.getStackInSlot(1));
|
||||
|
||||
setActiveButton(activeButton);
|
||||
ItemStack stack = StencilBuilder.getStencil(((GuiButtonStencil)this.buttonList.get(activeButton)).element.stencilIndex);
|
||||
logic.setSelectedPattern(stack);
|
||||
updateServer(stack);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -113,7 +116,7 @@ public class StencilTableGui extends GuiContainer
|
||||
ItemStack stack = StencilBuilder.getStencil(id);
|
||||
if(stack != null)
|
||||
{
|
||||
logic.setInventorySlotContents(1, stack);
|
||||
logic.setSelectedPattern(stack);
|
||||
updateServer(stack);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user