A lightweight, modular and versatile mod loader for Minecraft Bedrock Edition, formerly known as LiteLoaderBDS
GNU Lesser General Public License v3.0
1.14k
stars
117
forks
source link
[Bug] Automatic<Dimension, int> hash 计算不正确 #1540
Closed
quizhizhe closed 5 months ago
如题,这样会导致维度id与维度名的无序map里存在两种计算方式,在某种情况下at会查找不到原版维度id bds内的计算时直接使用id最为hash,所以,下面的 https://github.com/LiteLDev/LeviLamina/blob/1e3178990b3480a8c652b50f325d61063a57894c/src/mc/world/AutomaticID.h#L23
更改成,去掉std::hash计算,直接返回id即可