mirror of
https://github.com/TotalFreedomMC/PlayerParticles.git
synced 2025-02-11 11:40:21 +00:00
Fix material parsing
This commit is contained in:
parent
da7d8e5cb9
commit
4886f10656
2 changed files with 3 additions and 2 deletions
|
@ -36,7 +36,7 @@ public final class ParticleUtils {
|
|||
if (input == null || input.trim().isEmpty())
|
||||
return null;
|
||||
|
||||
return Material.matchMaterial(input);
|
||||
return Material.matchMaterial(input.toUpperCase());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
package dev.esophose.playerparticles.util.inputparser.parsable;
|
||||
|
||||
import dev.esophose.playerparticles.particles.PPlayer;
|
||||
import dev.esophose.playerparticles.util.ParticleUtils;
|
||||
import dev.esophose.playerparticles.util.inputparser.Parsable;
|
||||
import java.util.List;
|
||||
import org.bukkit.Material;
|
||||
|
@ -14,7 +15,7 @@ public class ParsableMaterial extends Parsable<Material> {
|
|||
@Override
|
||||
public Material parse(PPlayer pplayer, List<String> inputs) {
|
||||
String input = inputs.remove(0);
|
||||
return Material.getMaterial(input);
|
||||
return ParticleUtils.closestMatch(input);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue