Tasks that are Easy Enough for newcoming programmers
#33
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)
Reply
Thanks given by: tonibm19


Messages In This Thread
RE: Tasks that are Easy Enough for newcoming programmers - by Stephen304 - 06-21-2013, 07:18 AM



Users browsing this thread: 5 Guest(s)