mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 22:56:45 +01:00
Fix init player in TransientyEntityTracker
This commit is contained in:
parent
3f6de1c4ba
commit
c05c8e1b1d
@ -41,7 +41,7 @@ public class TamingManager extends SkillManager {
|
||||
private static HashMap<CallOfTheWildType, TamingSummon> cotwSummonDataProperties;
|
||||
private long lastSummonTimeStamp;
|
||||
|
||||
public TamingManager(McMMOPlayer mcMMOPlayer) {
|
||||
public TamingManager(@NotNull McMMOPlayer mcMMOPlayer) {
|
||||
super(mcMMOPlayer, PrimarySkillType.TAMING);
|
||||
init();
|
||||
}
|
||||
|
@ -54,6 +54,8 @@ public class MaterialMapStore {
|
||||
private final @NotNull HashSet<String> enchantables;
|
||||
|
||||
private final @NotNull HashSet<String> ores;
|
||||
private final @NotNull HashSet<String> intendedToolPickAxe;
|
||||
private final @NotNull HashSet<String> intendedToolShovel;
|
||||
|
||||
private final @NotNull HashMap<String, Integer> tierValue;
|
||||
|
||||
@ -99,6 +101,8 @@ public class MaterialMapStore {
|
||||
enchantables = new HashSet<>();
|
||||
|
||||
ores = new HashSet<>();
|
||||
intendedToolPickAxe = new HashSet<>();
|
||||
intendedToolShovel = new HashSet<>();
|
||||
|
||||
tierValue = new HashMap<>();
|
||||
|
||||
@ -206,6 +210,11 @@ public class MaterialMapStore {
|
||||
ores.add("gilded_blackstone");
|
||||
}
|
||||
|
||||
private void fillIntendedTools() {
|
||||
intendedToolPickAxe.addAll(ores);
|
||||
|
||||
}
|
||||
|
||||
private void fillArmors() {
|
||||
fillLeatherArmorWhiteList();
|
||||
fillIronArmorWhiteList();
|
||||
|
@ -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<>());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user