[SPIGOT-2936] WorldBorder.isInBounds bad logic Created: 19/Dec/16 Updated: 19/Dec/16 Resolved: 19/Dec/16 |
|
Status: | Resolved |
Project: | Spigot |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Bug | Priority: | Minor |
Reporter: | Daniel Ennis | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | craftbukkit |
Description |
In WorldBorder.isInBounds(int x, int z), the last variable checked is currently (double) (x << 4) < this.e() When it should be (double) (z << 4) < this.e() As it is checking x 3 times and z once. This allows monsters to spawn outside of the world border. |
Comments |
Comment by Daniel Ennis [ 19/Dec/16 ] |