Register the Pattern class to ConfigurationSerialization

By: Thinkofdeath <thinkofdeath@spigotmc.org>
This commit is contained in:
Bukkit/Spigot 2014-12-04 10:29:42 +00:00
parent dbfed2c8bf
commit 8c956cb6ff

View file

@ -12,6 +12,7 @@ import java.util.logging.Logger;
import org.apache.commons.lang.Validate;
import org.bukkit.Color;
import org.bukkit.FireworkEffect;
import org.bukkit.block.banner.Pattern;
import org.bukkit.configuration.Configuration;
import org.bukkit.inventory.ItemStack;
import org.bukkit.potion.PotionEffect;
@ -33,6 +34,7 @@ public class ConfigurationSerialization {
registerClass(Color.class);
registerClass(PotionEffect.class);
registerClass(FireworkEffect.class);
registerClass(Pattern.class);
}
protected ConfigurationSerialization(Class<? extends ConfigurationSerializable> clazz) {