by efficacy » Wed Aug 03, 2011 11:35 pm
Ok, thanks L. Spiro. I have fixed the code, but now I have a new problem: Minecraft crashes sometimes. One time I turn it on, it works. The next time, it crashes.
Here's my new code:
- Code: Select all
[ENABLE]
alloc(newmem,2048)
label(returnhere)
label(exit)
label(aoblab)
registersymbol(aoblab)
aobscan(aobaob,0f be 44 * 0c 81 e0 ff 00 00 00 83 c4 18) //Array is always correct and returns one result from scan
aobaob:
aoblab:
call newmem
returnhere:
newmem:
movsx eax,byte ptr [edi+edx+0C] //Orignal code
pushfd
cmp byte ptr [edi+edx+0C],0 //If the block is air...
je short exit //Go to exit
mov byte ptr [edi+edx+0C],11 //If the block is not air, then change to wood
exit:
popfd
ret
[DISABLE]
dealloc(newmem)
aoblab:
movsx eax,byte ptr [edi+edx+0C]
unregistersymbol(aoblab)
Thx for the reply btw. c:
I like pie so much, that no group could ever sum up to the value of how much of I like pie.