mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-18 18:29:05 +00:00
Sync Effects Packet
This commit is contained in:
1 parent
7d37670494
commit
097f1f9d1d
7 files changed
+94
-3
No files matched your search
@@ -41,7 +41,7 @@ public class CustomEffectController implements ICustomEffectHandler {
|
||||
private HashMap<Integer, String> bootOrder;
|
||||
|
||||
private int lastUsedID = 0;
|
||||
public ConcurrentHashMap<UUID, Map<EffectKey, PlayerEffect>> playerEffects = new ConcurrentHashMap<>();
|
||||
public ConcurrentHashMap<UUID, ConcurrentHashMap<EffectKey, PlayerEffect>> playerEffects = new ConcurrentHashMap<>();
|
||||
|
||||
public CustomEffectController() {}
|
||||
|
||||
@@ -214,9 +214,9 @@ public class CustomEffectController implements ICustomEffectHandler {
|
||||
return has(name, 0);
|
||||
}
|
||||
|
||||
public Map<EffectKey, PlayerEffect> getPlayerEffects(EntityPlayer player) {
|
||||
public ConcurrentHashMap<EffectKey, PlayerEffect> getPlayerEffects(EntityPlayer player) {
|
||||
UUID playerId = NoppesUtilServer.getUUID(player);
|
||||
Map<EffectKey, PlayerEffect> effects = playerEffects.get(playerId);
|
||||
ConcurrentHashMap<EffectKey, PlayerEffect> effects = playerEffects.get(playerId);
|
||||
if (effects == null) {
|
||||
effects = new ConcurrentHashMap<>();
|
||||
playerEffects.put(playerId, effects);
|
||||
|
||||
Reference in new issue
Block a user