public static void registerMaterials() { foreach (KeyValuePair <string, JSONNode> mat in MatList) { if (ItemTypesServer.ContainsTextureMapping(mat.Key)) { ItemTypesServer.RemoveTextureMapping(mat.Key); } } }