OvercastNetwork / SportBukkit

CraftBukkit and Bukkit modifications that improve stability and add new features
100 stars 85 forks source link

Don't load chunks when using World getChunkAt #47

Closed socram8888 closed 10 years ago

socram8888 commented 11 years ago

Using this patch, chunks won't be automatically loaded anymore when using world.getChunkAt or world.getBlockAt. Chunks will be only loaded when you request any data from it (its entities, block types...)

This is useful to prevent a chunk from loading when you only want to use its hashcode (or a block's hashcode) or the equals method in a HashMap, for example.