Commits
md_5 authored 9fa497cd556
43 43 | private int id; |
44 44 | |
45 45 | private boolean invulnerable; |
46 46 | public UUID uniqueID; |
47 47 | private final CommandObjectiveExecutor as; |
48 48 | + public boolean valid; // CraftBukkit |
49 49 | + public org.bukkit.projectiles.ProjectileSource projectileSource; // CraftBukkit - For projectiles only |
50 50 | |
51 51 | public int getId() { |
52 52 | return this.id; |
53 + | |
54 + | this.dead = true; |
55 + | } |
56 + | |
57 + | - protected void a(float f, float f1) { |
58 + | + // PAIL: Access + rename please |
59 + | + public void a(float f, float f1) { // CraftBukkit - protected to public |
60 + | if (f != this.width || f1 != this.length) { |
61 + | float f2 = this.width; |
62 + | |
53 63 | |
54 64 | } |
55 65 | |
56 66 | protected void setYawPitch(float f, float f1) { |
57 67 | + // CraftBukkit start - yaw was sometimes set to NaN, so we need to set it back to 0 |
58 68 | + if (Float.isNaN(f)) { |
59 69 | + f = 0; |
60 70 | + } |
61 71 | + |
62 72 | + if (f == Float.POSITIVE_INFINITY || f == Float.NEGATIVE_INFINITY) { |