Fix MC-30864 (sending web links in chat)

This commit is contained in:
Lex Manos committed 2014-12-23 15:04:41 -08:00
1 parent 7ddc5469b4
commit 51271dcc3a
2 files changed
+58 -2

No files matched your search

@@ -139,10 +139,12 @@
{
this.func_147359_a(new S2FPacketSetSlot(this.field_147369_b.field_71070_bA.field_75152_c, slot.field_75222_d, this.field_147369_b.field_71071_by.func_70448_g()));
}
@@ -765,6 +793,8 @@
@@ -764,7 +792,9 @@
}
else
{
ChatComponentTranslation chatcomponenttranslation1 = new ChatComponentTranslation("chat.type.text", new Object[] {this.field_147369_b.func_145748_c_(), s});
- ChatComponentTranslation chatcomponenttranslation1 = new ChatComponentTranslation("chat.type.text", new Object[] {this.field_147369_b.func_145748_c_(), s});
+ ChatComponentTranslation chatcomponenttranslation1 = new ChatComponentTranslation("chat.type.text", this.field_147369_b.func_145748_c_(), ForgeHooks.newChatWithLinks(s));
+ chatcomponenttranslation1 = ForgeHooks.onServerChatEvent(this, s, chatcomponenttranslation1);
+ if (chatcomponenttranslation1 == null) return;
this.field_147367_d.func_71203_ab().func_148544_a(chatcomponenttranslation1, false);