ddevault / Craft.Net

(Unmaintained, see TrueCraft) Minecraft server, client, and etc for .NET
MIT License
228 stars 64 forks source link

On Die, you get more items per pickup. #158

Closed MoBaT closed 11 years ago

MoBaT commented 11 years ago

If you manage to kill yourself 1 time, the next time you spawn instead of getting 1 dirt block, you get 2. If you kill yourself again, you get 3 on every dirt block you go over. I presume it's because of this part of the code:

Craft.Net.Server/EntityManager.cs On the spawnEntity void at this code: client.Entity.PickUpItem += Entity_PickUpItem;

When you respawn, it increments the eventHandler which increments the amount of items you pickup. I also assume that there might be a problem with the other event handlers around it because it's basically in the same format and incrementing as well.

I don't know too much about the code base to make any changes at the moment but when I do, ill make sure to try to fix and commit as many issues as possible.

ddevault commented 11 years ago

Good catch, I'll deal with this soon.