Skip to content

Commit

Permalink
Update entity widths in NCPCompatBukkit.
Browse files Browse the repository at this point in the history
  • Loading branch information
asofold committed Mar 20, 2015
1 parent 4d4e48d commit ccf9242
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
5 changes: 0 additions & 5 deletions NCPCompatBukkit/pom.xml
Expand Up @@ -19,11 +19,6 @@
<artifactId>ncpcore</artifactId>
<version>1.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.bukkit</groupId>
<artifactId>bukkit</artifactId>
<version>1.7.2-R0.3</version>
</dependency>
</dependencies>

<description>Compatibility for using the Bukkit API only.
Expand Down
Expand Up @@ -178,9 +178,18 @@ public double getWidth(final Entity entity) {
try {
switch (type) {
case LEASH_HITCH: // hanging: this.a(0.5F, 0.5F);
return 0.5;
return 0.5f;
case HORSE: // this.a(1.4F, 1.6F);
return 1.4f;
// 1.8
case ENDERMITE: // this.setSize(0.4F, 0.3F);
return 0.4f;
case ARMOR_STAND: // this.setSize(0.5F, 1.975F);
return 0.5f;
case RABBIT: // this.setSize(0.6F, 0.7F);
return 0.6f;
case GUARDIAN: // this.setSize(0.85F, 0.85F);
return 0.95f;
default:
break;
}
Expand Down

0 comments on commit ccf9242

Please sign in to comment.