Fix init player in TransientyEntityTracker

This commit is contained in:
nossr50
2020-12-31 16:08:23 -08:00
parent 3f6de1c4ba
commit c05c8e1b1d
3 changed files with 12 additions and 1 deletions

View File

@ -46,6 +46,8 @@ public class TransientEntityTracker {
}
private void registerPlayer(@NotNull UUID playerUUID) {
perPlayerTransientEntityMap.put(playerUUID, new HashMap<CallOfTheWildType, HashSet<TrackedTamingEntity>>());
for(CallOfTheWildType callOfTheWildType : CallOfTheWildType.values()) {
perPlayerTransientEntityMap.get(playerUUID).put(callOfTheWildType, new HashSet<>());
}