fix bug where it was not syncing inv
This commit is contained in:
@@ -156,6 +156,7 @@ public abstract class GuiBase extends GuiContainer
|
||||
{
|
||||
font = stack.getItem().getFontRenderer(stack);
|
||||
}
|
||||
|
||||
if (font == null)
|
||||
{
|
||||
font = fontRendererObj;
|
||||
|
@@ -149,6 +149,6 @@ public class InventorySimple implements IInventory
|
||||
@Override
|
||||
public IChatComponent getDisplayName()
|
||||
{
|
||||
return null; // @TODO: ...
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
@@ -105,6 +105,7 @@ public class MessageStoragePush implements IMessage, IMessageHandler<MessageStor
|
||||
else
|
||||
{
|
||||
player.inventory.setInventorySlotContents(message.slot, null);
|
||||
player.openContainer.detectAndSendChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -68,7 +68,7 @@ public class InventoryUtils
|
||||
}
|
||||
}
|
||||
|
||||
public static void dropStack(World world, ItemStack stack, int x, int y, int z) // @TODO: Take BlockPos here
|
||||
public static void dropStack(World world, ItemStack stack, int x, int y, int z)
|
||||
{
|
||||
float xo = world.rand.nextFloat() * 0.8F + 0.1F;
|
||||
float yo = world.rand.nextFloat() * 0.8F + 0.1F;
|
||||
|
Reference in New Issue
Block a user