mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-14 01:04:12 +00:00
Fix catalog display bug introduced in the previous fix
This commit is contained in:
1 parent
17182cc2b2
commit
daa3ab13be
1 file changed
+1
-2
@@ -79,6 +79,7 @@ public class GuiCatalogue extends GuiForestry<TileForestry> {
|
||||
|
||||
fontRendererObj.drawString(String.format("%s / %s", container.getCurrentPos(), container.getMaxCount()), guiLeft + xSize - 72, guiTop + 12, fontColor.get("gui.book"));
|
||||
|
||||
clearTradeInfoWidgets();
|
||||
if(container.getTradeInfo() != null)
|
||||
drawTradePreview(guiLeft + 38, guiTop + 30);
|
||||
else
|
||||
@@ -99,8 +100,6 @@ public class GuiCatalogue extends GuiForestry<TileForestry> {
|
||||
TradeStationInfo info = container.getTradeInfo();
|
||||
fontRendererObj.drawString(String.format(StringUtil.localize("gui.mail.willtrade"), info.owner.getName()), x, y + 18, fontColor.get("gui.book"));
|
||||
|
||||
clearTradeInfoWidgets();
|
||||
|
||||
addTradeInfoWidget(new ItemStackWidget(x - guiLeft, y - guiTop + 28, info.tradegood));
|
||||
|
||||
fontRendererObj.drawString(StringUtil.localize("gui.mail.tradefor"), x, y + 46, fontColor.get("gui.book"));
|
||||
|
||||
Reference in new issue
Block a user