Hey all I've got a little problem with addChatMessage, when activated it sends the chat message twice.
public void onBlockClicked(World world, int i, int j, int k, EntityPlayer entity)
{
entity.addPotionEffect((new PotionEffect(Potion.moveSpeed.getId(), 300, 0)));
entity.addPotionEffect((new PotionEffect(Potion.digSpeed.getId(), 300, 1)));
entity.addChatMessage((new ChatComponentText("Test")));
}
As you can see it's sending the message twice instead of once when the block is clicked once.
Any help would be much appreciated.
Thanks all!