mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-11-04 11:03:43 +01:00 
			
		
		
		
	Fix init player in TransientyEntityTracker
This commit is contained in:
		@@ -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<>());
 | 
			
		||||
        }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user