From 3ae536bbd2e15596d4aaf412861fb4022b1e0e49 Mon Sep 17 00:00:00 2001 From: Jules Date: Wed, 23 Oct 2024 18:14:34 +0200 Subject: [PATCH] Fixed small issue with default `long_sword.yml` --- .../src/main/java/net/Indyuce/mmoitems/stat/ItemParticles.java | 1 - MMOItems-Dist/src/main/resources/default/item/long_sword.yml | 1 - 2 files changed, 2 deletions(-) diff --git a/MMOItems-API/src/main/java/net/Indyuce/mmoitems/stat/ItemParticles.java b/MMOItems-API/src/main/java/net/Indyuce/mmoitems/stat/ItemParticles.java index f9f1fc23..5e8f7dad 100644 --- a/MMOItems-API/src/main/java/net/Indyuce/mmoitems/stat/ItemParticles.java +++ b/MMOItems-API/src/main/java/net/Indyuce/mmoitems/stat/ItemParticles.java @@ -52,7 +52,6 @@ public class ItemParticles extends ItemStat { @Override public ParticleData whenInitialized(Object object) { Validate.isTrue(object instanceof ConfigurationSection, "Must specify a config section"); - if (((ConfigurationSection) object).getKeys(false).size() < 1) { throw new IllegalArgumentException(""); } return new ParticleData((ConfigurationSection) object); } diff --git a/MMOItems-Dist/src/main/resources/default/item/long_sword.yml b/MMOItems-Dist/src/main/resources/default/item/long_sword.yml index 22c7c360..b1faa0ff 100644 --- a/MMOItems-Dist/src/main/resources/default/item/long_sword.yml +++ b/MMOItems-Dist/src/main/resources/default/item/long_sword.yml @@ -33,7 +33,6 @@ DUAL_LONGSWORD: perm-effects: SPEED: 1.0 SLOW: 1.0 - item-particles: {} ability: ability1: type: HOLY_MISSILE