mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-18 09:09:08 +00:00
Added Flying Code / Corrected Hidden Parts not Saving
Added a ton of code regarding Flying doesn't work correctly. Please Uncomment them by searching for Comment: // Fly Change Fixed Hidden Parts not Saving
This commit is contained in:
1 parent
7e7aaa805b
commit
3727d1af7a
18 files changed
+1365
-101
No files matched your search
@@ -50,6 +50,9 @@ 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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user