forked from Automat-GH/minecrift
-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement basic dynamic head prediction time value (auto mode) based …
…on previous frame time.
- Loading branch information
1 parent
265b7b9
commit 567e4a4
Showing
12 changed files
with
134 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
52b34b662d19aa17bdd355794d401fa67605ff85 | ||
bcb746de04323c6f905307b1ca1bcb3738f3f1be |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
--- a/net/minecraft/src/RandomMobs.java | ||
+++ b/net/minecraft/src/RandomMobs.java | ||
@@ -99,7 +99,7 @@ | ||
} | ||
else | ||
{ | ||
- ResourceLocation entity; | ||
+ ResourceLocation name; | ||
|
||
try | ||
{ | ||
@@ -110,45 +110,44 @@ | ||
initialize(); | ||
} | ||
|
||
- if (renderGlobal != null) | ||
+ if (renderGlobal == null) | ||
{ | ||
- Entity entity1 = renderGlobal.renderedEntity; | ||
- ResourceLocation name1; | ||
+ ResourceLocation entity1 = loc; | ||
+ return entity1; | ||
+ } | ||
|
||
- if (entity1 == null) | ||
- { | ||
- name1 = loc; | ||
- return name1; | ||
- } | ||
+ Entity entity = renderGlobal.renderedEntity; | ||
|
||
- if (!(entity1 instanceof EntityLiving)) | ||
- { | ||
- name1 = loc; | ||
- return name1; | ||
- } | ||
+ if (entity == null) | ||
+ { | ||
+ name = loc; | ||
+ return name; | ||
+ } | ||
|
||
- String name = loc.getResourcePath(); | ||
+ if (entity instanceof EntityLiving) | ||
+ { | ||
+ String name1 = loc.getResourcePath(); | ||
|
||
- if (!name.startsWith("textures/entity/")) | ||
+ if (!name1.startsWith("textures/entity/")) | ||
{ | ||
ResourceLocation uuidLow1 = loc; | ||
return uuidLow1; | ||
} | ||
|
||
- long uuidLow = entity1.getUniqueID().getLeastSignificantBits(); | ||
+ long uuidLow = entity.getUniqueID().getLeastSignificantBits(); | ||
int id = (int)(uuidLow & 2147483647L); | ||
ResourceLocation var6 = getTextureLocation(loc, id); | ||
return var6; | ||
} | ||
|
||
- entity = loc; | ||
+ name = loc; | ||
} | ||
finally | ||
{ | ||
working = false; | ||
} | ||
|
||
- return entity; | ||
+ return name; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters