MinicraftPlus / minicraft-plus-revived

Minicraft+, an extension of Notch's original minicraft project, with tons more features.
GNU General Public License v3.0
466 stars 93 forks source link

Reduce light radius check for mob despawning #600

Closed BenCheung0422 closed 8 months ago

BenCheung0422 commented 8 months ago

As for larger worlds, the game lags. This update the codes that uses the entire level for light radius check while it is not necessary. Please note that if modders have new light sources, they need to handle them themselves. Therefore, for 2.2.0-dev4 worlds larger than 128, the game is very lag.