mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-20 16:59:43 +00:00
added trader.slotdisabled to trader gui
I just copied what was done to display the trader.insufficient and added trader.slotdisabled to en_US.lang
This commit is contained in:
1 parent
aba637be14
commit
422dd3fc90
5 files changed
+19
-3
No files matched your search
@@ -117,6 +117,10 @@ public class GuiNPCTrader extends GuiContainerNPCInterface{
|
||||
this.fontRendererObj.drawString(title, (xSize - fontRendererObj.getStringWidth(title))/2, 131, 0xDD0000);
|
||||
GL11.glTranslatef(0, 0, -300);
|
||||
}
|
||||
else if (!container.isSlotEnabled(slot, player)) {
|
||||
String title = StatCollector.translateToLocal("trader.slotdisabled");
|
||||
this.fontRendererObj.drawString(title, (xSize - fontRendererObj.getStringWidth(title))/2, 131, 0x00DD00);
|
||||
}
|
||||
else{
|
||||
String title = StatCollector.translateToLocal("trader.sufficient");
|
||||
this.fontRendererObj.drawString(title, (xSize - fontRendererObj.getStringWidth(title))/2, 131, 0x00DD00);
|
||||
|
||||
Reference in new issue
Block a user