mirror of https://github.com/Minestom/Minestom.git
Fix wrong trim cache invalidation (#2126)
This commit is contained in:
parent
fed512eaf6
commit
4b9d79bed4
|
@ -81,7 +81,7 @@ public class TrimManager {
|
|||
}
|
||||
|
||||
public void addDefaultTrimPatterns() {
|
||||
this.trimMaterialCache = null;
|
||||
this.trimPatternCache = null;
|
||||
this.trimPatterns.addAll(TrimPattern.values());
|
||||
}
|
||||
|
||||
|
@ -96,12 +96,12 @@ public class TrimManager {
|
|||
}
|
||||
|
||||
public boolean addTrimPattern(TrimPattern trimPattern) {
|
||||
this.trimMaterialCache = null;
|
||||
this.trimPatternCache = null;
|
||||
return this.trimPatterns.add(trimPattern);
|
||||
}
|
||||
|
||||
public boolean removeTrimPattern(TrimPattern trimPattern) {
|
||||
this.trimMaterialCache = null;
|
||||
this.trimPatternCache = null;
|
||||
return this.trimPatterns.remove(trimPattern);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue