setModelType() only takes 0 for Steve, or 1 for Alex as values.

This commit is contained in:
Luis C.M committed 2022-05-28 06:31:52 -05:00
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;
}