fix: totalMined改用遍历stats map(之前遍历所有方块读不到数据)
AW暴露StatsCounter.stats字段。之前遍历BuiltInRegistries.BLOCK用getValue(StatType,block)大多返回0,导致挖掘数偏低。
This commit is contained in:
1 parent
1ee529eb5b
commit
72fbc95874
2 files changed
+13
-9
No files matched your search
@@ -1,6 +1,7 @@
|
||||
accessWidener v1 official
|
||||
|
||||
accessible class net/minecraft/world/entity/monster/EnderMan$EndermanTakeBlockGoal
|
||||
accessible method net/minecraft/world/entity/Entity unsetRemoved ()V
|
||||
accessible field net/minecraft/world/entity/Entity entityData Lnet/minecraft/network/syncher/SynchedEntityData;
|
||||
accessible field net/minecraft/world/entity/Avatar DATA_PLAYER_MODE_CUSTOMISATION Lnet/minecraft/network/syncher/EntityDataAccessor;
|
||||
accessWidener v1 official
|
||||
|
||||
accessible class net/minecraft/world/entity/monster/EnderMan$EndermanTakeBlockGoal
|
||||
accessible method net/minecraft/world/entity/Entity unsetRemoved ()V
|
||||
accessible field net/minecraft/world/entity/Entity entityData Lnet/minecraft/network/syncher/SynchedEntityData;
|
||||
accessible field net/minecraft/world/entity/Avatar DATA_PLAYER_MODE_CUSTOMISATION Lnet/minecraft/network/syncher/EntityDataAccessor;␍
|
||||
accessible field net/minecraft/stats/StatsCounter stats Lit/unimi/dsi/fastutil/objects/Object2IntMap;
|
||||
Reference in new issue
Block a user