Added 1.7.10 NPC interaction support (for #10).
This commit is contained in:
+4
-1
@@ -6,6 +6,7 @@ package net.jitse.npclib.nms.v1_8_R1.packets;
|
||||
|
||||
import com.comphenix.tinyprotocol.Reflection;
|
||||
import com.mojang.authlib.GameProfile;
|
||||
import net.jitse.npclib.api.wrapper.GameProfileWrapper;
|
||||
import net.minecraft.server.v1_8_R1.*;
|
||||
|
||||
import java.util.List;
|
||||
@@ -15,7 +16,9 @@ import java.util.List;
|
||||
*/
|
||||
public class PacketPlayOutPlayerInfoWrapper {
|
||||
|
||||
public PacketPlayOutPlayerInfo create(EnumPlayerInfoAction action, GameProfile gameProfile, String name) {
|
||||
public PacketPlayOutPlayerInfo create(EnumPlayerInfoAction action, GameProfileWrapper gameProfileWrapper, String name) {
|
||||
GameProfile gameProfile = (GameProfile) gameProfileWrapper.getGameProfile();
|
||||
|
||||
PacketPlayOutPlayerInfo packetPlayOutPlayerInfo = new PacketPlayOutPlayerInfo();
|
||||
Reflection.getField(packetPlayOutPlayerInfo.getClass(), "a", EnumPlayerInfoAction.class)
|
||||
.set(packetPlayOutPlayerInfo, action);
|
||||
|
||||
Reference in New Issue
Block a user