mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 03:47:27 +00:00
setModelType() only takes 0 for Steve, or 1 for Alex as values.
This commit is contained in:
1 parent
c083412723
commit
968b43a321
1 file changed
+4
-4
@@ -73,14 +73,14 @@ public class ScriptNpc<T extends EntityNPCInterface> extends ScriptLiving<T> imp
|
||||
}
|
||||
|
||||
/**
|
||||
* @param modelType The modelType of the NPC. 0: Steve, 1: Steve64, 2: Alex
|
||||
* @param modelType The modelType of the NPC. 0: Steve, 1: Alex
|
||||
*/
|
||||
public void setModelType(int modelType){
|
||||
if(modelType > 2)
|
||||
modelType = 2;
|
||||
if(modelType > 1)
|
||||
modelType = 1;
|
||||
else if(modelType < 0)
|
||||
modelType = 0;
|
||||
npc.display.modelType = modelType;
|
||||
npc.display.modelType = modelType * 2;
|
||||
npc.script.clientNeedsUpdate = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user