mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-17 09:55:11 +00:00
More Cleanup
This commit is contained in:
1 parent
43bc1eb81f
commit
ae7e7018c5
12 files changed
+39
-42
No files matched your search
@@ -522,12 +522,12 @@ public class ScriptNpc<T extends EntityNPCInterface> extends ScriptLiving<T> imp
|
||||
return npc.stats.aimType == 1;
|
||||
}
|
||||
|
||||
public void aimWhileShooting(boolean aimWhileShooting){
|
||||
public void aimWhileShooting(boolean aimWhileShooting) {
|
||||
npc.stats.aimType = (byte) (aimWhileShooting ? 1 : 0);
|
||||
}
|
||||
|
||||
public void setAimType(byte aimWhileShooting) {
|
||||
if(aimWhileShooting < 0 || aimWhileShooting > 2)
|
||||
if (aimWhileShooting < 0 || aimWhileShooting > 2)
|
||||
return;
|
||||
npc.stats.aimType = aimWhileShooting;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user