06-21-2013, 07:18 AM
(This post was last modified: 06-21-2013, 09:43 AM by Stephen304.)
Well I found the part that checks if blocks are in range to pickup, and I think I fixed the bug where you can pickup blocks 1 block below you (in a 1 block deep trench). It's a really simple fix, and it seems to work fine. Take a look:
https://dl.dropboxusercontent.com/u/3852...ange.patch
http://www.mc-server.org/support/index.p...ask_id=396
I just added && DiffY > -0.6 so items a block below you don't get picked up but items half a block below still get picked up.
When experimenting, I found that "(*itr)->GetPosY()" doesn't indicate whether items are on a half slab. (When on level ground, Y=101, when on a slab, Y=101 still)
https://dl.dropboxusercontent.com/u/3852...ange.patch
http://www.mc-server.org/support/index.p...ask_id=396
I just added && DiffY > -0.6 so items a block below you don't get picked up but items half a block below still get picked up.
When experimenting, I found that "(*itr)->GetPosY()" doesn't indicate whether items are on a half slab. (When on level ground, Y=101, when on a slab, Y=101 still)