09-11-2013, 01:08 AM
I see what you mean,
In order to achieve your proposal, and as I'm not a fan of copy-paste, I propose a refactoring of this part of cChunk (and cChunkMap in fact) that would use polymorphism to include all those methods inside a single one.
You'll find this proposition soon on another pull-request.
I used another branch because the refactoring is not related to mob spawning, and could be used to grown pumpkin or sugar cane event if mob spawning is not accepted.
In order to achieve your proposal, and as I'm not a fan of copy-paste, I propose a refactoring of this part of cChunk (and cChunkMap in fact) that would use polymorphism to include all those methods inside a single one.
You'll find this proposition soon on another pull-request.
I used another branch because the refactoring is not related to mob spawning, and could be used to grown pumpkin or sugar cane event if mob spawning is not accepted.