mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-18 20:49:05 +00:00
Fly Comments Removed
This commit is contained in:
1 parent
28de96516d
commit
f1ea2ad961
3 files changed
+2
-4
No files matched your search
@@ -32,8 +32,7 @@ public class DataAI {
|
||||
public EnumNavType tacticalVariant = EnumNavType.Default;
|
||||
public int useRangeMelee = 0;
|
||||
public int tacticalRadius = 8;
|
||||
|
||||
// Fly Change
|
||||
|
||||
public int movementType = 0;
|
||||
public double flySpeed = 1.0D;
|
||||
public double flyGravity = 0.0D;
|
||||
|
||||
@@ -50,7 +50,7 @@ public class EntityAIWander extends EntityAIBase
|
||||
else{
|
||||
this.xPosition = vec.xCoord;
|
||||
this.yPosition = vec.yCoord;
|
||||
// FLY CHANGE
|
||||
|
||||
if(entity.canFly())
|
||||
this.yPosition = entity.getStartYPos() + entity.getRNG().nextFloat() * 0.75 * entity.ai.walkingRange;
|
||||
this.zPosition = vec.zCoord;
|
||||
|
||||
@@ -29,7 +29,6 @@ public class SubGuiNpcMovement extends SubGuiInterface implements ITextfieldList
|
||||
this.addLabel(new GuiNpcLabel(0, "movement.type", guiLeft + 4, y + 5));
|
||||
this.addButton(new GuiNpcButton(0, guiLeft + 80, y, 100, 20, EnumMovingType.names(), ai.movingType.ordinal()));
|
||||
|
||||
// Fly Change
|
||||
this.addButton(new GuiNpcButton(15, guiLeft + 80, y += 22, 100, 20, new String[]{"movement.ground","movement.flying"}, ai.movementType));
|
||||
|
||||
if(ai.movementType == 1){
|
||||
|
||||
Reference in new issue
Block a user