()
| 64 | private static final String TYPE_POTION_LINGER = "linger"; |
| 65 | |
| 66 | public static void update() |
| 67 | { |
| 68 | itemProperties = (CustomItemProperties[][])null; |
| 69 | enchantmentProperties = (CustomItemProperties[][])null; |
| 70 | useGlint = true; |
| 71 | |
| 72 | if (Config.isCustomItems()) |
| 73 | { |
| 74 | readCitProperties("mcpatcher/cit.properties"); |
| 75 | IResourcePack[] airesourcepack = Config.getResourcePacks(); |
| 76 | |
| 77 | for (int i = airesourcepack.length - 1; i >= 0; --i) |
| 78 | { |
| 79 | IResourcePack iresourcepack = airesourcepack[i]; |
| 80 | update(iresourcepack); |
| 81 | } |
| 82 | |
| 83 | update(Config.getDefaultResourcePack()); |
| 84 | |
| 85 | if (itemProperties.length <= 0) |
| 86 | { |
| 87 | itemProperties = (CustomItemProperties[][])null; |
| 88 | } |
| 89 | |
| 90 | if (enchantmentProperties.length <= 0) |
| 91 | { |
| 92 | enchantmentProperties = (CustomItemProperties[][])null; |
| 93 | } |
| 94 | } |
| 95 | } |
| 96 | |
| 97 | private static void readCitProperties(String fileName) |
| 98 | { |
no test coverage detected