mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-13 00:47:50 +00:00
Fix follower packet role check
This commit is contained in:
1 parent
8070d8cdc4
commit
7e4d0e48bb
1 file changed
+2
-2
@@ -12,7 +12,7 @@ import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.entity.player.EntityPlayerMP;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import noppes.npcs.NoppesUtilPlayer;
|
||||
import noppes.npcs.constants.EnumJobType;
|
||||
import noppes.npcs.constants.EnumRoleType;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
@@ -57,7 +57,7 @@ public class FollowerPacket extends AbstractPacket {
|
||||
|
||||
EntityPlayerMP playerMP = (EntityPlayerMP) player;
|
||||
|
||||
if (npc.advanced.job != EnumJobType.Follower)
|
||||
if (npc.advanced.role != EnumRoleType.Follower)
|
||||
return;
|
||||
|
||||
switch (requestedAction) {
|
||||
|
||||
Reference in new issue
Block a user