mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-13 05:27:37 +00:00
set role on client side before opening role editors
This commit is contained in:
1 parent
b86c1ceabb
commit
e9f810dc21
1 file changed
+1
@@ -119,6 +119,7 @@ public class GuiNpcAdvanced extends GuiNPCInterface2 implements IGuiData {
|
||||
@Override
|
||||
public void setGuiData(NBTTagCompound compound) {
|
||||
if (compound.hasKey("RoleData")) {
|
||||
npc.advanced.setRole(compound.getByte("RoleData"));
|
||||
if (npc.roleInterface != null)
|
||||
npc.roleInterface.readFromNBT(compound);
|
||||
|
||||
|
||||
Reference in new issue
Block a user