File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/main/java/net/coreprotect/listener/entity Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1010import org .bukkit .Color ;
1111import org .bukkit .Location ;
1212import org .bukkit .Material ;
13+ import org .bukkit .Registry ;
1314import org .bukkit .World ;
1415import org .bukkit .attribute .Attributable ;
1516import org .bukkit .attribute .Attribute ;
6465import org .bukkit .inventory .meta .LeatherArmorMeta ;
6566import org .bukkit .projectiles .ProjectileSource ;
6667
68+ import com .google .common .collect .Lists ;
69+
6770import net .coreprotect .CoreProtect ;
6871import net .coreprotect .bukkit .BukkitAdapter ;
6972import net .coreprotect .config .Config ;
@@ -283,8 +286,7 @@ else if (entity instanceof Player) {
283286
284287 if (entity instanceof Attributable ) {
285288 Attributable attributable = entity ;
286-
287- for (Attribute attribute : Attribute .values ()) {
289+ for (Attribute attribute : Lists .newArrayList (Registry .ATTRIBUTE )) {
288290 AttributeInstance attributeInstance = attributable .getAttribute (attribute );
289291 if (attributeInstance != null ) {
290292 List <Object > attributeData = new ArrayList <>();
You can’t perform that action at this time.
0 commit comments