This commit is contained in:
Raoul Van den Berge
2016-07-13 15:41:19 +02:00
parent 780fc4c5f1
commit fb3210eed4

View File

@@ -5,6 +5,7 @@ import net.minecraft.client.gui.GuiScreen;
import net.minecraft.client.gui.GuiTextField;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.client.renderer.RenderHelper;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.SoundEvents;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
@@ -295,6 +296,11 @@ public class GuiGrid extends GuiBase {
}
if (isOverSlotWithItem()) {
/**
* Some mods modify the NBT tag in {@link Item#addInformation(ItemStack, EntityPlayer, List, boolean)}
* and that would cause a client and server desync between the items and
* that makes pulling fail.
*/
drawTooltip(mouseX, mouseY, items.get(slotNumber).copy());
}