Fix getting a stack of unstackable stuff from grid + text rendering order

This commit is contained in:
Raoul Van den Berge
2016-03-29 01:39:18 +02:00
parent 2ed22acb67
commit b63758ad78
2 changed files with 5 additions and 3 deletions

View File

@@ -159,6 +159,8 @@ public abstract class GuiBase extends GuiContainer {
}
public void drawItemOverlay(ItemStack stack, String text, int x, int y) {
itemRender.renderItemOverlayIntoGUI(fontRendererObj, stack, x, y, "");
if (text != null) {
GlStateManager.pushMatrix();
GlStateManager.translate(x, y, 1);
@@ -182,8 +184,6 @@ public abstract class GuiBase extends GuiContainer {
GlStateManager.disableBlend();
GlStateManager.popMatrix();
}
itemRender.renderItemOverlayIntoGUI(fontRendererObj, stack, x, y, "");
}
public void drawString(int x, int y, String message) {

View File

@@ -73,7 +73,9 @@ public class MessageStoragePull extends MessageHandlerPlayerToServer<MessageStor
}
} else if (message.one) {
quantity = 1;
} else if (message.shift && quantity > item.getType().getItemStackLimit(item.toItemStack())) {
}
if (quantity > item.getType().getItemStackLimit(item.toItemStack())) {
quantity = item.getType().getItemStackLimit(item.toItemStack());
}