We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1bb02a2 commit bd62304Copy full SHA for bd62304
src/main/java/com/laytonsmith/abstraction/bukkit/entities/BukkitMCEntity.java
@@ -186,7 +186,12 @@ public boolean leaveVehicle() {
186
187
@Override
188
public void playEffect(MCEntityEffect type) {
189
- e.playEffect(EntityEffect.valueOf(type.name()));
+ try {
190
+ e.playEffect(EntityEffect.valueOf(type.name()));
191
+ } catch(IllegalArgumentException ignore) {
192
+ // Likely a non-applicable effect (enforced in Paper 1.21.4+)
193
+ // Do nothing, as per documentation.
194
+ }
195
}
196
197
0 commit comments