commit
a9d2e090a6
|
@ -98,7 +98,7 @@ public abstract class NPCBase implements NPC, NPCPacketHandler {
|
||||||
forcedEmote.addProperty("uuid", uuid.toString());
|
forcedEmote.addProperty("uuid", uuid.toString());
|
||||||
forcedEmote.addProperty("emote_id", emoteId);
|
forcedEmote.addProperty("emote_id", emoteId);
|
||||||
array.add(forcedEmote);
|
array.add(forcedEmote);
|
||||||
LMCUtils.sendLMCMessage(receiver, "emote_api", array.getAsJsonObject());
|
LMCUtils.sendLMCMessage(receiver, "emote_api", array);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void disableFOV() {
|
public void disableFOV() {
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package net.labymod.utilities;
|
package net.labymod.utilities;
|
||||||
|
|
||||||
import com.comphenix.tinyprotocol.Reflection;
|
import com.comphenix.tinyprotocol.Reflection;
|
||||||
|
import com.google.gson.JsonElement;
|
||||||
import com.google.gson.JsonObject;
|
import com.google.gson.JsonObject;
|
||||||
import io.netty.buffer.ByteBuf;
|
import io.netty.buffer.ByteBuf;
|
||||||
import io.netty.buffer.Unpooled;
|
import io.netty.buffer.Unpooled;
|
||||||
|
@ -30,9 +31,9 @@ public class LMCUtils {
|
||||||
*
|
*
|
||||||
* @param player Minecraft Client
|
* @param player Minecraft Client
|
||||||
* @param key LMC message key
|
* @param key LMC message key
|
||||||
* @param messageContent json object content
|
* @param messageContent json element
|
||||||
*/
|
*/
|
||||||
public static void sendLMCMessage(Player player, String key, JsonObject messageContent) {
|
public static void sendLMCMessage(Player player, String key, JsonElement messageContent) {
|
||||||
byte[] bytes = LMCUtils.getBytesToSend(key, messageContent.toString());
|
byte[] bytes = LMCUtils.getBytesToSend(key, messageContent.toString());
|
||||||
|
|
||||||
// 12/4/20, JMB: Converted into reflections for multi-version support:
|
// 12/4/20, JMB: Converted into reflections for multi-version support:
|
||||||
|
|
Loading…
Reference in New Issue