[MC-1594] Trying to walk from a block with a collision box shorter than 1 block to another block that is also shorter, causes you to momentarily glitch into the ground Created: 01/Nov/12 Updated: 06/May/15 Resolved: 15/Mar/13 |
|
| Status: | Resolved |
| Project: | Minecraft: Java Edition |
| Component/s: | None |
| Affects Version/s: | Minecraft 1.4.2, Minecraft 1.4.6, Minecraft 1.4.7, Snapshot 13w01a, Snapshot 13w01b |
| Fix Version/s: | Minecraft 1.5 |
| Type: | Bug | ||
| Reporter: | Jordan Doorlag | Assignee: | Unassigned |
| Resolution: | Fixed | Votes: | 6 |
| Labels: | bed, collisions, hitbox, slabs, walking | ||
| Environment: |
All |
||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||
| CHK: | |||||||||||||||||||||||||||||||||||||
| Confirmation Status: | Community Consensus | ||||||||||||||||||||||||||||||||||||
| Description |
|
If you walk from a block that is shorter than a full block to another block that is also shorter than a full block, but taller than the first, you will momentarily glitch into the original into the block you are walking onto. |
| Comments |
| Comment by UncleMion [ 07/Jan/13 ] |
|
I can confirm this bug. I had to fix it for my resizing mod to work properly, after it kept causing "illegal stance" errors in multiplayer. (Using MCP v7.25 on Minecraft 1.4.6) The piece of code that needs to be changed is in the Entity.moveEntity method, in the part right before the Profiler section "rest", just before where Entity.ySize gets changed: double var40 = this.boundingBox.minY - (double)((int)this.boundingBox.minY); The "(double)(int)" causes the player to glitch through to the bottom of the short block before getting popped back up. My fix was this: double var40 = this.boundingBox.minY - var29.minY; Where "var29" was the copy of the entity's bounding box made before checking block collisions: AxisAlignedBB var29 = this.boundingBox.copy(); I hope this helps |